public void OnNavigatedTo(INavigationParameters parameters) { disposables?.Dispose(); disposables = new CompositeDisposable(); IsLoggedIn.Where(x => x) .Take(1) .Delay(TimeSpan.FromSeconds(2.5)) /* ここでログイン確認後の遷移前タメ時間を調整 */ .Subscribe(_ => { GoNextIntroduction.Execute(null); }); try { _ = NiconicoSession.SignInWithPrimaryAccount(); } catch { } }
public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState) { disposables?.Dispose(); disposables = new CompositeDisposable(); IsLoggedIn.Where(x => x) .Take(1) .Delay(TimeSpan.FromSeconds(2.5)) /* ここでログイン確認後の遷移前タメ時間を調整 */ .Subscribe(_ => { GoNextIntroduction.Execute(null); }); try { _ = NiconicoSession.SignInWithPrimaryAccount(); } catch { } base.OnNavigatedTo(e, viewModelState); }