Class TenantAppService
Inheritance
TenantAppService
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
Properties
DataSeeder
Declaration
protected IDataSeeder DataSeeder { get; }
Property Value
DistributedEventBus
Declaration
protected IDistributedEventBus DistributedEventBus { get; }
Property Value
LocalEventBus
Declaration
protected ILocalEventBus LocalEventBus { get; }
Property Value
TenantManager
Declaration
protected ITenantManager TenantManager { get; }
Property Value
TenantRepository
Declaration
protected ITenantRepository TenantRepository { get; }
Property Value
Methods
CreateAsync(TenantCreateDto)
Declaration
[Authorize("AbpTenantManagement.Tenants.Create")]
public virtual Task<TenantDto> CreateAsync(TenantCreateDto input)
Parameters
Returns
DeleteAsync(Guid)
Declaration
[Authorize("AbpTenantManagement.Tenants.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
DeleteDefaultConnectionStringAsync(Guid)
Declaration
[Authorize("AbpTenantManagement.Tenants.ManageConnectionStrings")]
public virtual Task DeleteDefaultConnectionStringAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAsync(Guid)
Declaration
public virtual Task<TenantDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetDefaultConnectionStringAsync(Guid)
Declaration
[Authorize("AbpTenantManagement.Tenants.ManageConnectionStrings")]
public virtual Task<string> GetDefaultConnectionStringAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
public virtual Task<PagedResultDto<TenantDto>> GetListAsync(GetTenantsInput input)
Parameters
Returns
UpdateAsync(Guid, TenantUpdateDto)
Declaration
[Authorize("AbpTenantManagement.Tenants.Update")]
public virtual Task<TenantDto> UpdateAsync(Guid id, TenantUpdateDto input)
Parameters
Returns
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
Implements
Extension Methods