Last active
June 19, 2018 14:31
-
-
Save jraps20/5bddf0baf6bf4d3ee247bde84dd204fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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