Table of Contents

Interface IMethodAwareRequestReplyTransport

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

Defines native request-reply operations that receive contract method metadata.

public interface IMethodAwareRequestReplyTransport : IRequestReplyTransport, IMessagingProtocol, IAsyncDisposable
Inherited Members

Methods

RequestAsync(string, TransportEnvelope, ContractMethodDescriptor, CancellationToken)

Sends a request using the specified contract method metadata and waits for its response.

ValueTask<TransportEnvelope> RequestAsync(string channel, TransportEnvelope request, ContractMethodDescriptor method, CancellationToken cancellationToken = default)

Parameters

channel string

The logical message channel.

request TransportEnvelope

The request envelope.

method ContractMethodDescriptor

The contract method metadata.

cancellationToken CancellationToken

The cancellation token.

Returns

ValueTask<TransportEnvelope>

A task whose result contains the response envelope.