コード例 #1
0
ファイル: Session.cs プロジェクト: Hayao-H/Niconicome
 public Session(INiconicoContext context)
 {
     this.context = context;
     this.IsLogin = new ReactiveProperty <bool>(context.IsLogin);
     this.User    = context.User.ToReactiveProperty().AddTo(this.disposables);
     context.User.Subscribe(value => this.IsLogin.Value = value is not null);
 }
コード例 #2
0
 public FirefoxSharedLogin(IFirefoxCookieManager firefoxCookieManager, ILogger logger, INicoHttp http, INiconicoContext context, ICookieManager cookieManager, IFirefoxProfileManager firefoxProfileManager) : base(http, cookieManager, context)
 {
     this.firefoxCookieManager = firefoxCookieManager;
     this.logger = logger;
     this.firefoxProfileManager = firefoxProfileManager;
 }
コード例 #3
0
ファイル: SharedLoginBase.cs プロジェクト: Hayao-H/Niconicome
 public SharedLoginBase(INicoHttp http, ICookieManager cookieManager, INiconicoContext context)
 {
     this.cookieManager = cookieManager;
     this.http          = http;
     this.context       = context;
 }
コード例 #4
0
 public Webview2SharedLogin(IWebview2LocalCookieManager webview2LocalCookieManager, ILogger logger, INicoHttp http, ICookieManager cookieManager, INiconicoContext context) : base(http, cookieManager, context)
 {
     this.webview2LocalCookieManager = webview2LocalCookieManager;
     this.logger = logger;
 }
コード例 #5
0
 public StoreFirefoxSharedLogin(IStoreFirefoxCookieManager firefoxCookie, ILogger logger, INicoHttp http, INiconicoContext context, ICookieManager cookieManager, IStoreFirefoxProfileManager profileManager) : base(firefoxCookie, logger, http, context, cookieManager, profileManager)
 {
 }