Table of Contents

Class MessageRequestChannel

Namespace
Garyon.Objects
Assembly
Garyon.dll

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

bool

Create(UnboundedChannelOptions)

Creates a new MessageRequestChannel with the specified channel options.

public static MessageRequestChannel Create(UnboundedChannelOptions channelOptions)

Parameters

channelOptions UnboundedChannelOptions

An UnboundedChannelOptions instance to configure the channel. In reality, its options are used to create a bounded channel with a capacity of 1.

Returns

MessageRequestChannel

WriteOne(CancellationToken)

Writes one request into the channel.

public Task WriteOne(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task