/// <summary> /// Initializes a new instance of the PluginManager class /// </summary> public PluginManager(Logger logger) { // Initialize loadedplugins = new Dictionary<string, Plugin>(); hooksubscriptions = new Dictionary<string, IList<Plugin>>(); Logger = logger; }
/// <summary> /// Adds a sublogger to this compound logger /// </summary> /// <param name="logger"></param> public void AddLogger(Logger logger) { // Register it subloggers.Add(logger); // Write the message cache to it foreach (var t in messagecache) logger.Write(t); }
/// <summary> /// Adds a sublogger to this compound logger /// </summary> /// <param name="logger"></param> public void AddLogger(Logger logger) { // Register it subloggers.Add(logger); // Write the message cache to it for (int i = 0; i < messagecache.Count; i++) { logger.Write(messagecache[i]); } }
/// <summary> /// Initializes a new instance of the JavaScriptGlobal library /// </summary> /// <param name="logger"></param> public JavaScriptGlobal(Logger logger) { Logger = logger; }
public PluginManager(Oxide.Core.Logging.Logger logger) { this.loadedPlugins = new Dictionary <string, Plugin>(); this.hookSubscriptions = new Dictionary <string, IList <Plugin> >(); this.Logger = logger; }
/// <summary> /// Removes a sublogger from this compound logger /// </summary> /// <param name="logger"></param> public void RemoveLogger(Logger logger) { // Unregister it subloggers.Remove(logger); }
/// <summary> /// Removes a sublogger from this compound logger /// </summary> /// <param name="logger"></param> public void RemoveLogger(Logger logger) => subloggers.Remove(logger);
/// <summary> /// Removes a sublogger from this compound logger /// </summary> /// <param name="logger"></param> public void RemoveLogger(Logger logger) { // Unregister it logger.OnRemoved(); subloggers.Remove(logger); }
/// <summary> /// Initializes a new instance of the LuaGlobal library /// </summary> /// <param name="logger"></param> public LuaGlobal(Logger logger) { Logger = logger; }