public void setupMGR() { _mgrClient = new MGRClient(); _mgr = new MGR(_mgrClient); // Print result of the request. this.WhenAnyValue(x => x._mgr.Auth) .ObserveOn(RxApp.MainThreadScheduler) .Subscribe(auth => { Debug.WriteLine( "AppCoordinator. Authorize(access token: '{0}' refresh token: '{1}')", auth.accessToken, auth.refreshToken); }); }
public MGR(MGRClient client) { _client = client; _auth = new AuthModel(); _authStatus = ModelRequestStatus.None; }