Interface IConsumerEndpoint<TEntity>
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
TEntityThe entity to post as input.
cancellationToken
CancellationTokenUsed to cancel the request.
Returns
Exceptions
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.