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
channelstringThe logical message channel.
requestTransportEnvelopeThe request to process.
cancellationTokenCancellationTokenThe token used to cancel the operation.
Returns
- ValueTask<TransportEnvelope>
A task whose result contains the response envelope.