Skip to content

Instantly share code, notes, and snippets.

Last active May 11, 2018 20:01
  • 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
What would you like to do?
public class LogMessageRemoteMap
public void Initialize(PipelineArgs args)
EventManager.Subscribe<LogMessageRemoteEvent>(new Action<LogMessageRemoteEvent>(OnGenericRemoteEvent<LogMessageRemoteEvent>));
private static void OnGenericRemoteEvent<TEvent>(TEvent @event) where TEvent : IHasEventName
RemoteEventArgs<TEvent> remoteEventArgs = new RemoteEventArgs<TEvent>(@event);
Event.RaiseEvent(@event.EventName, (IPassNativeEventArgs) remoteEventArgs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment