Skip to content

Instantly share code, notes, and snippets.

@jraps20
Last active June 19, 2018 14:31
Show Gist options
  • Save jraps20/5bddf0baf6bf4d3ee247bde84dd204fa to your computer and use it in GitHub Desktop.
Save jraps20/5bddf0baf6bf4d3ee247bde84dd204fa to your computer and use it in GitHub Desktop.
[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