public SiteContextBase(ICommentOptions options, IUserStoreManager userStoreManager, ILogger logger)
        {
            Options           = options;
            _userStoreManager = userStoreManager;
            _logger           = logger;
            var userStore = new SQLiteUserStore(options.SettingsDirPath + "\\" + "users_" + DisplayName + ".db", logger);

            userStoreManager.SetUserStore(SiteType, userStore);
        }
        public YouTubeLiveSiteContext(ICommentOptions options, IYouTubeLibeServer server, ILogger logger, IUserStoreManager userStoreManager)
        {
            _options          = options;
            _server           = server;
            _logger           = logger;
            _userStoreManager = userStoreManager;
            var userStore = new SQLiteUserStore(_options.SettingsDirPath + "\\" + "users_" + DisplayName + ".db", _logger);

            userStoreManager.SetUserStore(SiteType.YouTubeLive, userStore);
        }
Beispiel #3
0
        //private readonly IUserStore _userStore;

        public NicoSiteContext(ICommentOptions options, IDataSource server, Func <string, int, int, ISplitBuffer, IStreamSocket> StreamSocketFactory, ILogger logger, IUserStoreManager userStoreManager)
        {
            _options             = options;
            _server              = server;
            _streamSocketFactory = StreamSocketFactory;
            _logger              = logger;
            _userStoreManager    = userStoreManager;
            //_userStore = CreateUserStore();
            userStoreManager.SetUserStore(SiteType.NicoLive, new SQLiteUserStore(_options.SettingsDirPath + "\\" + "users_" + DisplayName + ".db", _logger));
        }