コード例 #1
0
 /// <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 <Channel> DeleteChannelAsync(this IChannels operations, int id, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteChannelWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Delete a channel from a group
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='channelId'>
 /// The id of the channel to delete
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteChannelAsync(this IChannels operations, int channelId, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteChannelWithHttpMessagesAsync(channelId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }