public PeriscopeCommentProvider(IDataServer server, ILogger logger, ICommentOptions options, PeriscopeSiteOptions siteOptions, IUserStoreManager userStoreManager)
     : base(logger, options)
 {
     _server           = server;
     _logger           = logger;
     _options          = options;
     _siteOptions      = siteOptions;
     _userStoreManager = userStoreManager;
 }
Esempio n. 2
0
        public override void LoadOptions(string path, IIo io)
        {
            _siteOptions = new PeriscopeSiteOptions();
            try
            {
                var s = io.ReadFile(path);

                _siteOptions.Deserialize(s);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                _logger.LogException(ex, "", $"path={path}");
            }
        }