/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MyComplexThing> ApiTypesGetAsync(this IMyAPI operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ApiTypesGetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MyComplexThing> ApiTypesGetWithHttpMessages(this IMyAPI operations, Dictionary <string, List <string> > customHeaders = null) { return(operations.ApiTypesGetWithHttpMessagesAsync(customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }