Skip to content

Instantly share code, notes, and snippets.

@jraps20
Last active June 19, 2018 14:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
[DataContract]
public class LogMessageRemoteEvent : IHasEventName
{
public LogMessageRemoteEvent(string instanceName, string eventName)
{
InstanceName = instanceName;
EventName = eventName;
}
// This is the custom data you will be passing between servers
// Any serializable data type (int, string, bool, simple class) can be used
[DataMember]
public string InstanceName { get; protected set; }
// This is implemented from IHasEventName and bridges the gap between the remote and local event
[DataMember]
public string EventName { get; protected set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment