Table of Contents

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

options IOptions<ApplicationModelOptions>

The options for the application model.

Methods

InvokeAsync(HttpContext, RequestDelegate)

Request handling method.

public Task InvokeAsync(HttpContext context, RequestDelegate next)

Parameters

context HttpContext

The HttpContext for the current request.

next RequestDelegate

The delegate representing the remaining middleware in the request pipeline.

Returns

Task

A Task that represents the execution of this middleware.