Skip to content

DapperMaticMiddleware

Namespace: MJCZone.DapperMatic.AspNetCore

Assembly: MJCZone.DapperMatic.AspNetCore

Summary

Middleware that initializes the DapperMatic operation context with HTTP request information.

public

Contents

Constructors (1) | Methods (5)

Constructors

DapperMaticMiddleware

Initializes a new instance of the DapperMaticMiddleware class.

csharp
DapperMaticMiddleware(RequestDelegate next)

Parameters

  • next (RequestDelegate) - The next middleware in the pipeline.

Methods

InvokeAsync

Invokes the middleware to initialize the operation context.

csharp
Task InvokeAsync(
    HttpContext httpContext,
    IOperationContext operationContext,
    IOperationContextInitializer initializer)

Parameters

  • httpContext (HttpContext) - The HTTP context for the current request.
  • operationContext (IOperationContext) - The operation context to initialize (injected from DI).
  • initializer (IOperationContextInitializer) - The operation context initializer (injected from DI).

Returns

Type: Task

A task representing the asynchronous operation.

GetType

csharp
GetType()

ToString

csharp
ToString()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()