예제 #1
0
 /// <summary>
 /// Sync version of FirstAsync().
 /// </summary>
 /// <returns>returns the next response.</returns>
 public HttpPaginatedResponse First()
 {
     return(AsyncHelper.RunSync(FirstAsync));
 }
예제 #2
0
 /// <summary>
 /// Sync version of NextAsync().
 /// </summary>
 /// <returns>returns the next response.</returns>
 public new HttpPaginatedResponse Next()
 {
     return(AsyncHelper.RunSync(NextAsync));
 }
예제 #3
0
 public TokenDetails Authorise(TokenParams tokenParams = null,
                               AuthOptions options     = null)
 {
     return(AsyncHelper.RunSync(() => AuthoriseAsync(tokenParams, options)));
 }
예제 #4
0
 public string CreateTokenRequest(TokenParams tokenParams = null,
                                  AuthOptions authOptions = null)
 {
     return(AsyncHelper.RunSync(() => CreateTokenRequestAsync(tokenParams, authOptions)));
 }
예제 #5
0
 public TokenDetails RequestToken(TokenParams tokenParams = null,
                                  AuthOptions options     = null)
 {
     return(AsyncHelper.RunSync(() => RequestTokenAsync(tokenParams, options)));
 }