Esempio n. 1
0
 /// <summary>
 /// Unregisters the specified plugin broadcaster.
 /// </summary>
 public void UnregisterPlugin(Broadcaster broadcaster)
 {
     broadcasters.Remove (broadcaster);
     broadcaster = null;
 }
Esempio n. 2
0
 public BroadcastEventArgs(Broadcaster from_plugin, string command, object obj)
 {
     this.from_plugin = from_plugin;
     this.command = command;
     this.obj = obj;
 }
Esempio n. 3
0
        /// <summary>
        /// Registers a plugin with the broadcaster.
        /// </summary>
        public Broadcaster RegisterPlugin(string name, string version, BroadcastEvent handler)
        {
            Broadcaster broadcaster = new Broadcaster (name, version, handler);
            broadcasters.Add (broadcaster);

            return broadcaster;
        }
Esempio n. 4
0
 /// <summary>
 /// Send a command to the plugin.
 /// </summary>
 public void SendCommand(Broadcaster from_plugin, string command, object obj)
 {
     if (handler != null)
     {
         BroadcastEventArgs args = new BroadcastEventArgs (from_plugin, command, obj);
         handler (args);
     }
 }