Пример #1
0
        public PluginManager(IPluginConfig config, string rootPath)
        {
            this.Config = config;
            this.Config.PluginChangedState += Config_PluginChangedState;

            this.rootPath = rootPath;
            this.bridge   = new PluginBridge(this);
        }
Пример #2
0
        public PluginManager(string rootPath, string configPath)
        {
            this.rootPath   = rootPath;
            this.configPath = configPath;

            this.Config = new PluginConfig();
            this.Bridge = new PluginBridge(this);

            Config.Load(configPath);
            Config.InternalPluginChangedState += Config_InternalPluginChangedState;
        }
Пример #3
0
        public PluginManager(string rootPath, string configPath)
        {
            this.rootPath   = rootPath;
            this.configPath = configPath;

            this.Config = new PluginConfig();
            this.Bridge = new PluginBridge(this);

            LoadConfig();

            Config.InternalPluginChangedState += Config_InternalPluginChangedState;
            Program.UserConfigReplaced        += Program_UserConfigReplaced;
        }