public void OnEvent(PluginEventData data) { foreach (var sink in sinks) { try { sink.EventToClient(data); } catch (RemotingException rex) { //Ignore it for now. Console.WriteLine(rex.ToString()); } } }
public MessageFromPluginEventArgs(PluginEventData pluginEventdata) { PluginEventData = pluginEventdata; }
private void RaiseMessageFromPluginEvent(PluginEventData eventData) { if (MessageFromPlugin != null) { MessageFromPlugin(this, new MessageFromPluginEventArgs(eventData)); } }
void eventSink_OnHostToClient(PluginEventData data) { RaiseMessageFromPluginEvent(data); }
public void EventToClient(PluginEventData info) { if (OnHostToClient != null) OnHostToClient(info); }