A middleaware that resolves tenant of
Initializes a new instance of TenantResolverMiddleware.
public Void TenantResolverMiddleware(next, options)
Name | Type | Summary |
---|---|---|
next | RequestDelegate | A pointer to the next middleware in the pipeline. |
options | TenantResolverOptions<TTenant> | Options required for this middleware. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when options is null. |
ArgumentException | Thrown when options.Provider.Provider is null. |
Execute the pipeline steps.
public Task Invoke(context)
Name | Type | Summary |
---|---|---|
context | HttpContext | An HttpContext. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when context is null. |
In this document