Table of Contents

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

channel string

The logical message channel.

envelope TransportEnvelope

The transport envelope to process.

cancellationToken CancellationToken

The token used to cancel the operation.

Returns

ValueTask

A task that represents the asynchronous operation.