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