示例#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());
         }
     }
 }
示例#2
0
 public MessageFromPluginEventArgs(PluginEventData pluginEventdata)
 {
     PluginEventData = pluginEventdata;
 }
示例#3
0
 private void RaiseMessageFromPluginEvent(PluginEventData eventData)
 {
     if (MessageFromPlugin != null)
     {
         MessageFromPlugin(this, new MessageFromPluginEventArgs(eventData));
     }
 }
示例#4
0
 void eventSink_OnHostToClient(PluginEventData data)
 {
     RaiseMessageFromPluginEvent(data);
 }
示例#5
0
 public void EventToClient(PluginEventData info)
 {
     if (OnHostToClient != null)
         OnHostToClient(info);
 }