コード例 #1
0
 public IObservable <QueuedDownload> Logout()
 {
     return(DownloadManager
            .CancelAllDownloads()
            .ObserveOnDispatcher()
            .Finally(DoLogout));
 }
コード例 #2
0
 public IObservable <QueuedDownload> FactoryReset()
 {
     return(DownloadManager
            .CancelAllDownloads()
            .ObserveOnDispatcher()
            .Finally(
                () =>
     {
         RemoveUsers(UserDatabase.Users.ToArray());
         ApplicationSettings.ServerUrl = null;
         StatisticsManager.Statistics.Clear();
         DoLogout();
         BroadcastFactoryResetEvent();
     }));
 }