Class CurrentTenant
Inheritance
object
CurrentTenant
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.MultiTenancy
Assembly: Volo.Abp.MultiTenancy.dll
Syntax
public class CurrentTenant : ICurrentTenant, ITransientDependency
Constructors
CurrentTenant(ICurrentTenantAccessor)
Declaration
public CurrentTenant(ICurrentTenantAccessor currentTenantAccessor)
Parameters
| Type | Name | Description |
|---|---|---|
| ICurrentTenantAccessor | currentTenantAccessor |
Properties
Id
Declaration
public virtual Guid? Id { get; }
Property Value
| Type | Description |
|---|---|
| System.Guid? |
IsAvailable
Declaration
public virtual bool IsAvailable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Change(Guid?, string)
Declaration
public IDisposable Change(Guid? id, string name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid? | id | |
| string | name |
Returns
| Type | Description |
|---|---|
| System.IDisposable |