Table of Contents

Class CallContextMiddleware

Namespace
FoundationaLLM.Common.Middleware
Assembly
FoundationaLLM.Common.dll

Middleware that stores context information for the current HTTP request. This middleware should be registered in the application's Startup.Configure method.

public class CallContextMiddleware
Inheritance
CallContextMiddleware
Inherited Members
Extension Methods

Constructors

CallContextMiddleware(RequestDelegate)

Initializes a new instance of the CallContextMiddleware class.

public CallContextMiddleware(RequestDelegate next)

Parameters

next RequestDelegate

Methods

InvokeAsync(HttpContext, IUserClaimsProviderService, IIdentityManagementService, IOrchestrationContext, IOptions<InstanceSettings>)

Executes the middleware.

public Task InvokeAsync(HttpContext context, IUserClaimsProviderService claimsProviderService, IIdentityManagementService identityManagementService, IOrchestrationContext callContext, IOptions<InstanceSettings> instanceSettings)

Parameters

context HttpContext

The current HTTP request context.

claimsProviderService IUserClaimsProviderService

Resolves user claims to a UnifiedUserIdentity object.

identityManagementService IIdentityManagementService

Provides group membership services for user principals.

callContext IOrchestrationContext

Stores context information extracted from the current HTTP request. This information is primarily used to inject HTTP headers into downstream HTTP calls.

instanceSettings IOptions<InstanceSettings>

Contains the FoundationaLLM instance configuration settings.

Returns

Task