Skip to content

Instantly share code, notes, and snippets.

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