Ejemplo n.º 1
0
 public DebugTools()
     : base()
 {
     this.component = PluginContext.ComponentFactory.GetInstance <ISqlComponent>();
     PluginContext.Host.UserConnected += (sender, e) => this.component = PluginContext.ComponentFactory.GetInstance <ISqlComponent>();
     this.Logger.Warn("Debug plugin is loaded. It shouldn't be used in production!");
 }
Ejemplo n.º 2
0
        public void AddComponent(ISqlComponent component)
        {
            Guard.Null(component, "Component cannot be null.");

            Components.Add(component);
        }