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