public void RegisterPlugin(EncogPluginBase plugin) { // is it not a general plugin? if (plugin.PluginServiceType != EncogPluginBaseConst.SERVICE_TYPE_GENERAL) { if (plugin.PluginServiceType == EncogPluginBaseConst.SERVICE_TYPE_LOGGING) { // remove the old logging plugin if (_loggingPlugin != null) { _plugins.Remove(_loggingPlugin); } _loggingPlugin = (IEncogPluginLogging1) plugin; } } // add to the plugins _plugins.Add(plugin); }