TenantResolverMiddleware

A middleaware that resolves tenant of base on the request.

Namespace:
Inetdev.AspNetCore.Multitenancy
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object

Constructors

TenantResolverMiddleware

Initializes a new instance of TenantResolverMiddleware.

Signature:
public Void TenantResolverMiddleware(next, options)
Parameters
Name Type Summary
next RequestDelegate A pointer to the next middleware in the pipeline.
options TenantResolverOptions<TTenant> Options required for this middleware.
Exceptions
Type Summary
ArgumentNullException Thrown when options is null.
ArgumentException Thrown when options.Provider.Provider is null.

Methods

Invoke

Execute the pipeline steps.

Signature:
public Task Invoke(context)
Parameters
Name Type Summary
context HttpContext An HttpContext.
Exceptions
Type Summary
ArgumentNullException Thrown when context is null.

In this document