Пример #1
0
 /// <summary>
 /// Retrieves information about current state of the channel. This method is thread-safe.
 /// </summary>
 /// <returns>
 /// ChannelStateOperationResult with OperationStatus.Completed or OperationStatus.Cancelled as well as ChannelState indicating current number of active messages in the queue
 /// </returns>
 public IAsyncOperation <ChannelStateOperationResult> GetChannelStateAsync()
 {
     return(AsyncInfo.Run(async cancellationToken => new ChannelStateOperationResult(await _internal.GetChannelStateAsync(cancellationToken, Timeout.InfiniteTimeSpan))));
 }