/// <summary> /// A good description. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AddAsync(this ICowbellOps operations, string body, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.AddWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// A good description. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> public static void Add(this ICowbellOps operations, string body) { operations.AddAsync(body).GetAwaiter().GetResult(); }