Class MessageRequestChannel
Represents a message request channel that allows writing requests for a single operation.
public sealed class MessageRequestChannel
- Inheritance
-
MessageRequestChannel
- Inherited Members
- Extension Methods
Methods
ConsumeAllRequests()
Consumes all requests and returns whether any was found in the channel.
public bool ConsumeAllRequests()
Returns
Create(UnboundedChannelOptions)
Creates a new MessageRequestChannel with the specified channel options.
public static MessageRequestChannel Create(UnboundedChannelOptions channelOptions)
Parameters
channelOptionsUnboundedChannelOptionsAn UnboundedChannelOptions instance to configure the channel. In reality, its options are used to create a bounded channel with a capacity of 1.
Returns
WriteOne(CancellationToken)
Writes one request into the channel.
public Task WriteOne(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken