Beispiel #1
0
 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);
 }
Beispiel #5
0
 public void EventToClient(PluginEventData info)
 {
     if (OnHostToClient != null)
         OnHostToClient(info);
 }