Class TenantIdMiddleware
- Namespace
- Cratis.Applications.Tenancy
- Assembly
- Cratis.Applications.dll
Represents an implementation of IMiddleware that sets the tenant ID for the request.
public class TenantIdMiddleware : IMiddleware
- Inheritance
-
TenantIdMiddleware
- Implements
- Inherited Members
- Extension Methods
Constructors
TenantIdMiddleware(IOptions<ApplicationModelOptions>)
Represents an implementation of IMiddleware that sets the tenant ID for the request.
public TenantIdMiddleware(IOptions<ApplicationModelOptions> options)
Parameters
optionsIOptions<ApplicationModelOptions>The options for the application model.
Methods
InvokeAsync(HttpContext, RequestDelegate)
Request handling method.
public Task InvokeAsync(HttpContext context, RequestDelegate next)
Parameters
contextHttpContextThe HttpContext for the current request.
nextRequestDelegateThe delegate representing the remaining middleware in the request pipeline.