Interface IMiddleware
The middleware interface. For streaming-version middleware, check IStreaming
Properties
Name
the name of the middleware
Property Value
Methods
InvokeAsync(MiddlewareContext, IAgent, CancellationToken)
The method to invoke the middleware
Task<IMessage> InvokeAsync(MiddlewareContext context, IAgent agent, CancellationToken cancellationToken = default)
Parameters
context
MiddlewareContext agent
IAgentcancellationToken
CancellationToken