Table of Contents

Interface IConsumerEndpoint<TEntity>

Namespace
TypedRest.Endpoints.Rpc
Assembly
TypedRest.dll

RPC endpoint that takes TEntity as input when invoked.

public interface IConsumerEndpoint<in TEntity> : IRpcEndpoint, IEndpoint

Type Parameters

TEntity

The type of entity the endpoint takes as input.

Inherited Members

Methods

InvokeAsync(TEntity, CancellationToken)

Sends the entity to the consumer.

Task InvokeAsync(TEntity entity, CancellationToken cancellationToken = default)

Parameters

entity TEntity

The entity to post as input.

cancellationToken CancellationToken

Used to cancel the request.

Returns

Task

Exceptions

AuthenticationException

Unauthorized

UnauthorizedAccessException

Forbidden

KeyNotFoundException

NotFound or Gone

HttpRequestException

Other non-success status code.