Class HeaderTenantResolveContributor
Inheritance
object
HeaderTenantResolveContributor
Implements
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.MultiTenancy
Assembly: Volo.Abp.AspNetCore.MultiTenancy.dll
Syntax
public class HeaderTenantResolveContributor : HttpTenantResolveContributorBase, ITenantResolveContributor
Constructors
HeaderTenantResolveContributor()
Declaration
public HeaderTenantResolveContributor()
Fields
ContributorName
Declaration
public const string ContributorName = "Header"
Field Value
| Type | Description |
|---|---|
| string |
Properties
Name
Declaration
public override string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetTenantIdOrNameFromHttpContextOrNullAsync(ITenantResolveContext, HttpContext)
Declaration
protected override Task<string> GetTenantIdOrNameFromHttpContextOrNullAsync(ITenantResolveContext context, HttpContext httpContext)
Parameters
| Type | Name | Description |
|---|---|---|
| ITenantResolveContext | context | |
| Microsoft.AspNetCore.Http.HttpContext | httpContext |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><string> |
Overrides
Log(ITenantResolveContext, string)
Declaration
protected virtual void Log(ITenantResolveContext context, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| ITenantResolveContext | context | |
| string | text |