/// <summary> /// Unregisters the specified plugin broadcaster. /// </summary> public void UnregisterPlugin(Broadcaster broadcaster) { broadcasters.Remove (broadcaster); broadcaster = null; }
public BroadcastEventArgs(Broadcaster from_plugin, string command, object obj) { this.from_plugin = from_plugin; this.command = command; this.obj = obj; }
/// <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; }
/// <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); } }