Delegate MessageBrokerClientStreamDecorator
- Namespace
- LfrlAnvil.MessageBroker.Client
- Assembly
- LfrlAnvil.MessageBroker.Client.dll
Represents a callback which allows to decorate MessageBrokerClient's network stream.
Owner of thestream.
NetworkStream to decorate.
CancellationToken instance.
client.public delegate ValueTask<Stream> MessageBrokerClientStreamDecorator(MessageBrokerClient client, NetworkStream stream, CancellationToken cancellationToken)
Parameters
clientMessageBrokerClient- 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.
streamNetworkStream- 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.
cancellationTokenCancellationToken- 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.