Beispiel #1
0
 public LineLiveCommentProvider(IDataServer server, ILogger logger, ICommentOptions options, LineLiveSiteOptions siteOptions, IUserStoreManager userStoreManager)
 {
     _server           = server;
     _logger           = logger;
     _options          = options;
     _siteOptions      = siteOptions;
     _userStoreManager = userStoreManager;
     CanConnect        = true;
     CanDisconnect     = false;
 }
        public override void LoadOptions(string path, IIo io)
        {
            _siteOptions = new LineLiveSiteOptions();
            try
            {
                var s = io.ReadFile(path);

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