Table of Contents

Delegate MessageBrokerClientStreamDecorator

Namespace
LfrlAnvil.MessageBroker.Client
Assembly
LfrlAnvil.MessageBroker.Client.dll

Represents a callback which allows to decorate MessageBrokerClient's network stream.

Owner of the stream.NetworkStream to decorate.CancellationToken instance.A ValueTask<TResult> which returns a stream, that will be used by the client.
public delegate ValueTask<Stream> MessageBrokerClientStreamDecorator(MessageBrokerClient client, NetworkStream stream, CancellationToken cancellationToken)

Parameters

client MessageBrokerClient
Represents a callback which allows to decorate 's network stream. Owner of the stream. to decorate. instance.A which returns a stream, that will be used by the client.
stream NetworkStream
Represents a callback which allows to decorate 's network stream. Owner of the stream. to decorate. instance.A which returns a stream, that will be used by the client.
cancellationToken CancellationToken
Represents a callback which allows to decorate 's network stream. Owner of the stream. to decorate. instance.A which returns a stream, that will be used by the client.

Returns

ValueTask<Stream>
Represents a callback which allows to decorate 's network stream. Owner of the stream. to decorate. instance.A which returns a stream, that will be used by the client.