Skip to content

Instantly share code, notes, and snippets.

Embed
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