public EveBot() { var db = new EveDb(); _currentSpace = db.EveSpaces.Single(s => s.IsActive); //only single space is supported now _updater = new BotUpdatePoller(_currentSpace.BotApiAccessToken); _outgoingApi = new TelegramBotApi(_currentSpace.BotApiAccessToken); _mainThread = new Thread(UpdateProc); }
public PluginLocalStorage(PluginInfo pluginInfo) { _pluginInfo = pluginInfo; _dbContext = new EveDb(); }