The per-chain-step state exposed to middleware via the chain walker. Constructed by the chain walker for each middleware invocation.
public sealed class MiddlewareContext
kind:method, kind:property, kind:ctor. Press Esc to clear.MiddlewareContext(Func<InvocationContext, Task>, CancellationToken, MiddlewareItems?)Initializes a new instance of the MiddlewareContext class.CancellationTokenGets the cancellation token for this middleware step.ItemsGets the per-step items dictionary for sharing data between middleware.NextGets the delegate to invoke the next middleware or the terminal pipeline. This property is read-only and retained for diagnostics and introspection. Middleware must receive the next delegate via the InvokeAsync(InvocationContext, Func<InvocationContext, Task>) parameter, not via this property.