Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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]);
            }
        }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Removes a sublogger from this compound logger
 /// </summary>
 /// <param name="logger"></param>
 public void RemoveLogger(Logger logger)
 {
     // Unregister it
     subloggers.Remove(logger);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Removes a sublogger from this compound logger
 /// </summary>
 /// <param name="logger"></param>
 public void RemoveLogger(Logger logger) => subloggers.Remove(logger);
Ejemplo n.º 8
0
 /// <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);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the LuaGlobal library
 /// </summary>
 /// <param name="logger"></param>
 public LuaGlobal(Logger logger)
 {
     Logger = logger;
 }