Exemple #1
0
 public PluginManager(ConfPlugins config, CoreInjector coreInjector, ResourceResolver resourceResolver, BotManager botManager)
 {
     this.config           = config;
     this.coreInjector     = coreInjector;
     this.resourceResolver = resourceResolver;
     this.botManager       = botManager;
 }
Exemple #2
0
 public PluginManager(ConfPlugins config, CoreInjector coreInjector)
 {
     Util.Init(out plugins);
     Util.Init(out usedIds);
     this.config       = config;
     this.coreInjector = coreInjector;
 }
Exemple #3
0
        public TwitchInfoUpdater(ConfPlugins confPlugins, string streamerLoginName)
        {
            this.streamerLoginName = streamerLoginName;

            var twitchConfigPath = Path.Combine(confPlugins.Path, TwitchConfigFileName);

            twitchConfig = JsonConvert.DeserializeObject <TwitchConfig>(File.ReadAllText(twitchConfigPath));

            TokenSource = new CancellationTokenSource();
            var descUpdaterThread = new Thread(TwitchInfoCollector)
            {
                IsBackground = true
            };

            descUpdaterThread.Start();
        }
Exemple #4
0
 public PluginManager(ConfPlugins config, CoreInjector coreInjector)
 {
     this.config       = config;
     this.coreInjector = coreInjector;
 }
 public PluginManager(ConfPlugins config)
 {
     Util.Init(out plugins);
     Util.Init(out usedIds);
     this.config = config;
 }