Interface ISendTransport
- Namespace
- AnyProtocol.Protocol.Abstraction
- Assembly
- AnyProtocol.Protocol.Abstraction.dll
Defines the capability to send envelopes to logical channels.
public interface ISendTransport : IMessagingProtocol, IAsyncDisposable
- Inherited Members
Methods
SendAsync(string, TransportEnvelope, CancellationToken)
Sends a transport envelope to the specified logical channel.
ValueTask SendAsync(string channel, TransportEnvelope envelope, CancellationToken cancellationToken = default)
Parameters
channelstringThe logical message channel.
envelopeTransportEnvelopeThe transport envelope to process.
cancellationTokenCancellationTokenThe token used to cancel the operation.
Returns
- ValueTask
A task that represents the asynchronous operation.