Class JsonApiMiddleware
- Namespace
- JsonApiDotNetCore.Middleware
- Assembly
- JsonApiDotNetCore.dll
Intercepts HTTP requests to populate injected IJsonApiRequest instance for JSON:API requests.
[PublicAPI]
public sealed class JsonApiMiddleware
- Inheritance
-
JsonApiMiddleware
- Inherited Members
Constructors
JsonApiMiddleware(RequestDelegate?, IHttpContextAccessor, IControllerResourceMapping, IJsonApiOptions, IJsonApiContentNegotiator, ILogger<JsonApiMiddleware>)
public JsonApiMiddleware(RequestDelegate? next, IHttpContextAccessor httpContextAccessor, IControllerResourceMapping controllerResourceMapping, IJsonApiOptions options, IJsonApiContentNegotiator contentNegotiator, ILogger<JsonApiMiddleware> logger)
Parameters
next
RequestDelegatehttpContextAccessor
IHttpContextAccessorcontrollerResourceMapping
IControllerResourceMappingoptions
IJsonApiOptionscontentNegotiator
IJsonApiContentNegotiatorlogger
ILogger<JsonApiMiddleware>
Methods
InvokeAsync(HttpContext, IJsonApiRequest)
public Task InvokeAsync(HttpContext httpContext, IJsonApiRequest request)
Parameters
httpContext
HttpContextrequest
IJsonApiRequest