GitHub.Models.RepositoryHost.LogInFromCache C# (CSharp) Method

LogInFromCache() private method

private LogInFromCache ( ) : IObservable
return IObservable
        public IObservable<AuthenticationResult> LogInFromCache()
        {
            return GetUserFromApi()
                .ObserveOn(RxApp.MainThreadScheduler)
                .Catch<UserAndScopes, Exception>(ex =>
                {
                    if (ex is AuthorizationException)
                    {
                        log.Warn("Got an authorization exception", ex);
                    }
                    return Observable.Return<UserAndScopes>(null);
                })
                .SelectMany(LoginWithApiUser)
                .PublishAsync();
        }