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
channelstringThe logical message channel.
requestTransportEnvelopeThe request envelope.
methodContractMethodDescriptorThe contract method metadata.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- ValueTask<TransportEnvelope>
A task whose result contains the response envelope.