TenantNameUrlRewriterRule

Rewrite the Url by removing the tenant name from the begining of the path.

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

Constructors

TenantNameUrlRewriterRule

Default constructor

Signature:
public Void TenantNameUrlRewriterRule()

Methods

ApplyRule

Applies the rewrite rule.

Signature:
public Void ApplyRule(context)
Parameters
Name Type Summary
context RewriteContext A RewriteContext.
Exceptions
Type Summary
ArgumentNullException Thrown when context is null.
MissingPartitionKeyException Thrown when the HttpContext does not contains Tenant information.

In this document