예제 #1
0
 /// <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();
 }
예제 #2
0
 /// <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();
 }