Example #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='value'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ApiValuesPostAsync(this IMyAPI operations, string value = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.ApiValuesPostWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Example #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='value'>
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse ApiValuesPostWithHttpMessages(this IMyAPI operations, string value = default(string), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.ApiValuesPostWithHttpMessagesAsync(value, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }