Interface IConsumerEndpoint<TEntity>
RPC endpoint that takes TEntity as input when invoked.
public interface IConsumerEndpoint<in TEntity> : IRpcEndpoint, IEndpoint
Type Parameters
TEntityThe 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
entityTEntityThe entity to post as input.
cancellationTokenCancellationTokenUsed to cancel the request.
Returns
Exceptions
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.