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);
            });
        }
示例#2
0
 public MGR(MGRClient client)
 {
     _client     = client;
     _auth       = new AuthModel();
     _authStatus = ModelRequestStatus.None;
 }