Class TranslateResultToHttpResultFilter
Translates the Result object to an implementation of IResult.
Result object can be:
- Result<T>
- ListedResult<T>
- PagedResult<T>
- Result
- A subtype of ResultBase.
Implements
Inherited Members
Namespace: SimpleResults
Assembly: SimpleResults.AspNetCore.dll
Syntax
public class TranslateResultToHttpResultFilter : IEndpointFilter
Methods
Name | Description |
---|---|
InvokeAsync(EndpointFilterInvocationContext, EndpointFilterDelegate) | Translates the Result object into a corresponding HTTP status code. This translation occurs after an endpoint handler is executed. |