Interface IProducerEndpoint<TResult>
RPC endpoint that takes no input and returns TResult
as output when invoked.
public interface IProducerEndpoint<out TResult> : IRpcEndpoint, IEndpoint
Type Parameters
TResult
The type of entity the endpoint returns as output.
- Inherited Members
Methods
InvokeAsync(CancellationToken)
Gets a result from the producer.
ITask<out TResult> InvokeAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenUsed to cancel the request.
Returns
- ITask<TResult>
The result returned by the server.
Exceptions
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.