コード例 #1
0
 /// <summary>
 /// Wait for and get new messages, message deletions, message edits, channel
 /// information updates, and channel deletions in a channel
 /// </summary>
 /// <remarks>
 /// This request will not return from the service until at least one new
 /// channel event has occurred
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='channelId'>
 /// The id of the channel to listen to
 /// </param>
 /// <param name='since'>
 /// The time to get channel events since
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <ChannelEventDTO> > GetChannelEventsAsync(this IChannels operations, int channelId, System.DateTime since, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetChannelEventsWithHttpMessagesAsync(channelId, since, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }