public TwicasCommentProvider2(IDataServer server, ILogger logger, ICommentOptions options, TwicasSiteOptions siteOptions, IUserStoreManager userStoreManager)
     : base(logger, options)
 {
     _server                        = server;
     _logger                        = logger;
     _options                       = options;
     _siteOptions                   = siteOptions;
     _userStoreManager              = userStoreManager;
     _messenger.SystemInfoReiceved += _messenger_SystemInfoReiceved;
 }
Пример #2
0
        public override void LoadOptions(string path, IIo io)
        {
            _siteOptions = new TwicasSiteOptions();
            try
            {
                var s = io.ReadFile(path);

                _siteOptions.Deserialize(s);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                _logger.LogException(ex, "", $"path={path}");
            }
        }
 internal TwicasOptionsViewModel(TwicasSiteOptions siteOptions)
 {
     _origin  = siteOptions;
     _changed = siteOptions.Clone();
 }
        public TwicasCommentProvider(IDataServer server, ILogger logger, ICommentOptions options, TwicasSiteOptions siteOptions, IUserStoreManager userStoreManager)
        {
            _server           = server;
            _logger           = logger;
            _options          = options;
            _siteOptions      = siteOptions;
            _userStoreManager = userStoreManager;

            CanConnect    = true;
            CanDisconnect = false;
        }