Table of Contents

Interface IRequestReplyTransport

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

Defines the capability to perform native request/reply operations.

public interface IRequestReplyTransport : IMessagingProtocol, IAsyncDisposable
Inherited Members

Methods

RequestAsync(string, TransportEnvelope, CancellationToken)

Sends a request and waits asynchronously for its response.

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

Parameters

channel string

The logical message channel.

request TransportEnvelope

The request to process.

cancellationToken CancellationToken

The token used to cancel the operation.

Returns

ValueTask<TransportEnvelope>

A task whose result contains the response envelope.