Class DomainValidationEndpointFilter<T>
- Namespace
- JD.Domain.AspNetCore
- Assembly
- JD.Domain.AspNetCore.dll
Endpoint filter that performs domain validation on request bodies.
public sealed class DomainValidationEndpointFilter<T> : IEndpointFilter where T : class
Type Parameters
TThe type to validate.
- Inheritance
-
DomainValidationEndpointFilter<T>
- Implements
- Inherited Members
Methods
InvokeAsync(EndpointFilterInvocationContext, EndpointFilterDelegate)
Implements the core logic associated with the filter given a EndpointFilterInvocationContext and the next filter to call in the pipeline.
public ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next)
Parameters
contextEndpointFilterInvocationContextThe EndpointFilterInvocationContext associated with the current request/response.
nextEndpointFilterDelegateThe next filter in the pipeline.