Table of Contents

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

T

The 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

context EndpointFilterInvocationContext

The EndpointFilterInvocationContext associated with the current request/response.

next EndpointFilterDelegate

The next filter in the pipeline.

Returns

ValueTask<object>

An awaitable result of calling the handler and apply any modifications made by filters in the pipeline.