Table of Contents

Delegate MessageBrokerRemoteClientStreamDecorator

Namespace
LfrlAnvil.MessageBroker.Server
Assembly
LfrlAnvil.MessageBroker.Server.dll

Represents a callback which allows to decorate MessageBrokerRemoteClientConnector's network stream, which will also be used by a MessageBrokerRemoteClient.

Owner of the stream.NetworkStream to decorate.A ValueTask<TResult> which returns a stream, that will be used by the connector.
public delegate ValueTask<Stream> MessageBrokerRemoteClientStreamDecorator(MessageBrokerRemoteClientConnector connector, NetworkStream stream)

Parameters

connector MessageBrokerRemoteClientConnector
Represents a callback which allows to decorate 's network stream, which will also be used by a . Owner of the stream. to decorate.A which returns a stream, that will be used by the connector.
stream NetworkStream
Represents a callback which allows to decorate 's network stream, which will also be used by a . Owner of the stream. to decorate.A which returns a stream, that will be used by the connector.

Returns

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