/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <string> > ApiValuesGetAsync(this IMyAPI operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ApiValuesGetWithHttpMessagesAsync(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 <IList <string> > ApiValuesGetWithHttpMessages(this IMyAPI operations, Dictionary <string, List <string> > customHeaders = null) { return(operations.ApiValuesGetWithHttpMessagesAsync(customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }