Show / Hide Table of Contents

Class TenantAppService

Inheritance
object
ApplicationService
TenantManagementAppServiceBase
TenantAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
ITenantAppService
ICrudAppService<TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>
ICrudAppService<TenantDto, TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>
IReadOnlyAppService<TenantDto, TenantDto, Guid, GetTenantsInput>
ICreateUpdateAppService<TenantDto, Guid, TenantCreateDto, TenantUpdateDto>
ICreateAppService<TenantDto, TenantCreateDto>
IUpdateAppService<TenantDto, Guid, TenantUpdateDto>
IDeleteAppService<Guid>
IApplicationService
IRemoteService
Inherited Members
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.TenantManagement
Assembly: Volo.Abp.TenantManagement.Application.dll
Syntax
[Authorize("AbpTenantManagement.Tenants")]
public class TenantAppService : TenantManagementAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, ITenantAppService, ICrudAppService<TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>, ICrudAppService<TenantDto, TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>, IReadOnlyAppService<TenantDto, TenantDto, Guid, GetTenantsInput>, ICreateUpdateAppService<TenantDto, Guid, TenantCreateDto, TenantUpdateDto>, ICreateAppService<TenantDto, TenantCreateDto>, IUpdateAppService<TenantDto, Guid, TenantUpdateDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService

Constructors

TenantAppService(ITenantRepository, ITenantManager, IDataSeeder, IDistributedEventBus, ILocalEventBus)

Declaration
public TenantAppService(ITenantRepository tenantRepository, ITenantManager tenantManager, IDataSeeder dataSeeder, IDistributedEventBus distributedEventBus, ILocalEventBus localEventBus)
Parameters
Type Name Description
ITenantRepository tenantRepository
ITenantManager tenantManager
IDataSeeder dataSeeder
IDistributedEventBus distributedEventBus
ILocalEventBus localEventBus

Properties

DataSeeder

Declaration
protected IDataSeeder DataSeeder { get; }
Property Value
Type Description
IDataSeeder

DistributedEventBus

Declaration
protected IDistributedEventBus DistributedEventBus { get; }
Property Value
Type Description
IDistributedEventBus

LocalEventBus

Declaration
protected ILocalEventBus LocalEventBus { get; }
Property Value
Type Description
ILocalEventBus

TenantManager

Declaration
protected ITenantManager TenantManager { get; }
Property Value
Type Description
ITenantManager

TenantRepository

Declaration
protected ITenantRepository TenantRepository { get; }
Property Value
Type Description
ITenantRepository

Methods

CreateAsync(TenantCreateDto)

Declaration
[Authorize("AbpTenantManagement.Tenants.Create")]
public virtual Task<TenantDto> CreateAsync(TenantCreateDto input)
Parameters
Type Name Description
TenantCreateDto input
Returns
Type Description
Task<TenantDto>

DeleteAsync(Guid)

Declaration
[Authorize("AbpTenantManagement.Tenants.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

DeleteDefaultConnectionStringAsync(Guid)

Declaration
[Authorize("AbpTenantManagement.Tenants.ManageConnectionStrings")]
public virtual Task DeleteDefaultConnectionStringAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetAsync(Guid)

Declaration
public virtual Task<TenantDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<TenantDto>

GetDefaultConnectionStringAsync(Guid)

Declaration
[Authorize("AbpTenantManagement.Tenants.ManageConnectionStrings")]
public virtual Task<string> GetDefaultConnectionStringAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<string>

GetListAsync(GetTenantsInput)

Declaration
public virtual Task<PagedResultDto<TenantDto>> GetListAsync(GetTenantsInput input)
Parameters
Type Name Description
GetTenantsInput input
Returns
Type Description
Task<PagedResultDto<TenantDto>>

UpdateAsync(Guid, TenantUpdateDto)

Declaration
[Authorize("AbpTenantManagement.Tenants.Update")]
public virtual Task<TenantDto> UpdateAsync(Guid id, TenantUpdateDto input)
Parameters
Type Name Description
Guid id
TenantUpdateDto input
Returns
Type Description
Task<TenantDto>

UpdateDefaultConnectionStringAsync(Guid, string)

Declaration
[Authorize("AbpTenantManagement.Tenants.ManageConnectionStrings")]
public virtual Task UpdateDefaultConnectionStringAsync(Guid id, string defaultConnectionString)
Parameters
Type Name Description
Guid id
string defaultConnectionString
Returns
Type Description
Task

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
ITenantAppService
ICrudAppService<TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
ICrudAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
ICreateUpdateAppService<TGetOutputDto, TKey, TCreateUpdateInput, TUpdateInput>
ICreateAppService<TGetOutputDto, TCreateInput>
IUpdateAppService<TGetOutputDto, TKey, TUpdateInput>
IDeleteAppService<TKey>
IApplicationService
IRemoteService

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform