public TimeshiftPageViewModel( ApplicationLayoutManager applicationLayoutManager, LoginUserLiveReservationProvider loginUserLiveReservationProvider, NicoLiveProvider nicoLiveProvider, HohoemaPlaylist hohoemaPlaylist, NoUIProcessScreenContext noUIProcessScreenContext, Services.DialogService dialogService ) { ApplicationLayoutManager = applicationLayoutManager; LoginUserLiveReservationProvider = loginUserLiveReservationProvider; NicoLiveProvider = nicoLiveProvider; HohoemaPlaylist = hohoemaPlaylist; _noUIProcessScreenContext = noUIProcessScreenContext; DialogService = dialogService; }
public TimeshiftPageViewModel( ILoggerFactory loggerFactory, ApplicationLayoutManager applicationLayoutManager, LoginUserLiveReservationProvider loginUserLiveReservationProvider, NicoLiveProvider nicoLiveProvider, NoUIProcessScreenContext noUIProcessScreenContext, Services.DialogService dialogService, OpenLiveContentCommand openLiveContentCommand ) : base(loggerFactory.CreateLogger <TimeshiftPageViewModel>()) { ApplicationLayoutManager = applicationLayoutManager; LoginUserLiveReservationProvider = loginUserLiveReservationProvider; NicoLiveProvider = nicoLiveProvider; _noUIProcessScreenContext = noUIProcessScreenContext; DialogService = dialogService; OpenLiveContentCommand = openLiveContentCommand; }
public NiconicoLoginService( NiconicoSession niconicoSession, NoUIProcessScreenContext noProcessUIScreenContext, DialogService dialogService, NotificationService notificationService, IMessenger messenger ) { NiconicoSession = niconicoSession; _noProcessUIScreenContext = noProcessUIScreenContext; DialogService = dialogService; NotificationService = notificationService; _messenger = messenger; // 二要素認証を求められるケースに対応する // 起動後の自動ログイン時に二要素認証を要求されることもある _messenger.Register <NiconicoSessionLoginRequireTwoFactorAsyncRequestMessage>(this); NiconicoSession.LogIn += NiconicoSession_LogIn; NiconicoSession.LogInFailed += NiconicoSession_LogInFailed; NiconicoSession.LogOut += NiconicoSession_LogOut; }
public NoUIProcessScreen() { DataContext = _context = Microsoft.Toolkit.Mvvm.DependencyInjection.Ioc.Default.GetService <NoUIProcessScreenContext>(); this.InitializeComponent(); }
public NoUIProcessScreen() { DataContext = _context = App.Current.Container.Resolve <NoUIProcessScreenContext>(); this.InitializeComponent(); }