/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ApiValuesByIdDeleteAsync(this IMyAPI operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ApiValuesByIdDeleteWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse ApiValuesByIdDeleteWithHttpMessages(this IMyAPI operations, int id, Dictionary <string, List <string> > customHeaders = null) { return(operations.ApiValuesByIdDeleteWithHttpMessagesAsync(id, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }