예제 #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='postCode'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> Get1Async(this IProgramsOfStudy operations, string postCode, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.Get1WithHttpMessagesAsync(postCode, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='includeExpired'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetAsync(this IProgramsOfStudy operations, bool?includeExpired = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(includeExpired, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='postCode'>
 /// </param>
 public static object Get1(this IProgramsOfStudy operations, string postCode)
 {
     return(operations.Get1Async(postCode).GetAwaiter().GetResult());
 }
예제 #4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='includeExpired'>
 /// </param>
 public static object Get(this IProgramsOfStudy operations, bool?includeExpired = default(bool?))
 {
     return(operations.GetAsync(includeExpired).GetAwaiter().GetResult());
 }