Table of Contents

Interface IProducerEndpoint<TResult>

Namespace
TypedRest.Endpoints.Rpc
Assembly
TypedRest.dll

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 CancellationToken

Used to cancel the request.

Returns

ITask<TResult>

The result returned by the server.

Exceptions

AuthenticationException

Unauthorized

UnauthorizedAccessException

Forbidden

KeyNotFoundException

NotFound or Gone

HttpRequestException

Other non-success status code.