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