protected virtual EachConnection CreateConnection(ILogger logger, CookieContainer cc, ICommentOptions options, IYouTubeLibeServer server, YouTubeLiveSiteOptions siteOptions, Dictionary <string, int> userCommentCountDict, SynchronizedCollection <string> receivedCommentIds, ICommentProvider cp, IUserStoreManager userStoreManager, Guid siteContextGuid) { return(new EachConnection(logger, cc, options, server, siteOptions, userCommentCountDict, receivedCommentIds, cp, userStoreManager) { SiteContextGuid = siteContextGuid, }); }
public CommentProvider(ICommentOptions options, IYouTubeLibeServer server, YouTubeLiveSiteOptions siteOptions, ILogger logger, IUserStoreManager userStoreManager) { _options = options; _siteOptions = siteOptions; _logger = logger; _userStoreManager = userStoreManager; _server = server; CanConnect = true; CanDisconnect = false; }
public EachConnection(ILogger logger, CookieContainer cc, ICommentOptions options, IYouTubeLibeServer server, YouTubeLiveSiteOptions siteOptions, Dictionary <string, int> userCommentCountDict, SynchronizedCollection <string> receivedCommentIds, ICommentProvider cp, IUserStoreManager userStoreManager) { _logger = logger; _cc = cc; _options = options; _server = server; _siteOptions = siteOptions; _userCommentCountDict = userCommentCountDict; _receivedCommentIds = receivedCommentIds; _cp = cp; _userStoreManager = userStoreManager; }
public void LoadOptions(string path, IIo io) { _siteOptions = new YouTubeLiveSiteOptions(); try { var s = io.ReadFile(path); _siteOptions.Deserialize(s); } catch (Exception ex) { Debug.WriteLine(ex.Message); _logger.LogException(ex, "", $"path={path}"); } }
internal YouTubeLiveOptionsViewModel(YouTubeLiveSiteOptions siteOptions) { _origin = siteOptions; changed = siteOptions.Clone(); }