Table of Contents

Interface IMethodAwareMessagingProtocol

Namespace
AnyProtocol.Protocol.Abstraction
Assembly
AnyProtocol.Protocol.Abstraction.dll

Defines messaging operations that receive the logical contract method metadata.

public interface IMethodAwareMessagingProtocol : ISendTransport, IMessagingProtocol, IAsyncDisposable
Inherited Members

Methods

SendAsync(string, TransportEnvelope, ContractMethodDescriptor, CancellationToken)

Sends a transport envelope using the specified contract method metadata.

ValueTask SendAsync(string channel, TransportEnvelope envelope, ContractMethodDescriptor method, CancellationToken cancellationToken = default)

Parameters

channel string

The logical message channel.

envelope TransportEnvelope

The transport envelope to process.

method ContractMethodDescriptor

The contract method metadata.

cancellationToken CancellationToken

The cancellation token.

Returns

ValueTask

A task that represents the asynchronous operation.