/// <summary> /// Add an individual to the master list. /// </summary> /// <param name="plugin">The plugin instance to add.</param> public bool AddPlugin(AbstractPlugin plugin) { lock (m_pluginsAvailable) { if (m_pluginsAvailable.ContainsKey(plugin.UUID)) { this.Log().Warn("Plugin with UUID '{0}' is already registered.", plugin.UUID); return false; } this.Log().Debug("Adding plugin {0} (ID = '{1}')", plugin.GetType().Name, plugin.UUID); m_pluginsAvailable[plugin.UUID] = plugin; } return true; }
public PluginHost(AbstractPlugin plugin) { m_plugin = plugin; m_messageBus = Locator.Current.GetService<IMessageBus>(); }