public void Authenticate(String code, Action callback) { this.GetAccessToken(code, token => { this.AccessToken = token; if (this.AccessToken.State == OAuthAccessTokenState.Success) { callback(); } else { var ex = new OAuthAuthenticateException(token.JsonText, ""); this.OnError(new AsyncHttpCallErrorEventArgs(null, ex)); } }); }