Class TenantAppService
Inheritance
TenantAppService
Assembly: Volo.Saas.Host.Application.dll
Syntax
[Authorize("Saas.Tenants")]
public class TenantAppService : SaasHostAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, ITenantAppService, ICrudAppService<SaasTenantDto, Guid, GetTenantsInput, SaasTenantCreateDto, SaasTenantUpdateDto>, ICrudAppService<SaasTenantDto, SaasTenantDto, Guid, GetTenantsInput, SaasTenantCreateDto, SaasTenantUpdateDto>, IReadOnlyAppService<SaasTenantDto, SaasTenantDto, Guid, GetTenantsInput>, ICreateUpdateAppService<SaasTenantDto, Guid, SaasTenantCreateDto, SaasTenantUpdateDto>, ICreateAppService<SaasTenantDto, SaasTenantCreateDto>, IUpdateAppService<SaasTenantDto, Guid, SaasTenantUpdateDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
TenantAppService(ITenantRepository, IEditionRepository, ITenantManager, IDataSeeder, ILocalEventBus, IDistributedEventBus, IOptions<AbpDbConnectionOptions>, IConnectionStringChecker)
Declaration
public TenantAppService(ITenantRepository tenantRepository, IEditionRepository editionRepository, ITenantManager tenantManager, IDataSeeder dataSeeder, ILocalEventBus _localEventBus, IDistributedEventBus distributedEventBus, IOptions<AbpDbConnectionOptions> dbConnectionOptions, IConnectionStringChecker connectionStringChecker)
Parameters
Properties
ConnectionStringChecker
Declaration
protected IConnectionStringChecker ConnectionStringChecker { get; }
Property Value
DataSeeder
Declaration
protected IDataSeeder DataSeeder { get; }
Property Value
DbConnectionOptions
Declaration
protected AbpDbConnectionOptions DbConnectionOptions { get; }
Property Value
DistributedEventBus
Declaration
protected IDistributedEventBus DistributedEventBus { get; }
Property Value
EditionRepository
Declaration
protected IEditionRepository EditionRepository { 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
ApplyDatabaseMigrationsAsync(Guid)
Declaration
[Authorize("Saas.Tenants.ManageConnectionStrings")]
public virtual Task ApplyDatabaseMigrationsAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
CheckConnectionStringAsync(string)
Declaration
public virtual Task<bool> CheckConnectionStringAsync(string connectionString)
Parameters
Type |
Name |
Description |
string |
connectionString |
|
Returns
CreateAsync(SaasTenantCreateDto)
Declaration
[Authorize("Saas.Tenants.Create")]
public virtual Task<SaasTenantDto> CreateAsync(SaasTenantCreateDto input)
Parameters
Returns
DeleteAsync(Guid)
Declaration
[Authorize("Saas.Tenants.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAsync(Guid)
Declaration
public virtual Task<SaasTenantDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetConnectionStringsAsync(Guid)
Declaration
[Authorize("Saas.Tenants.ManageConnectionStrings")]
public virtual Task<SaasTenantConnectionStringsDto> GetConnectionStringsAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetDatabasesAsync()
Declaration
[Authorize("Saas.Tenants.ManageConnectionStrings")]
public virtual Task<SaasTenantDatabasesDto> GetDatabasesAsync()
Returns
GetEditionLookupAsync()
Declaration
public virtual Task<List<EditionLookupDto>> GetEditionLookupAsync()
Returns
Declaration
public virtual Task<PagedResultDto<SaasTenantDto>> GetListAsync(GetTenantsInput input)
Parameters
Returns
NormalizedConnectionStringsAsync(SaasTenantConnectionStringsDto)
Declaration
protected virtual Task<SaasTenantConnectionStringsDto> NormalizedConnectionStringsAsync(SaasTenantConnectionStringsDto input)
Parameters
Returns
SetPasswordAsync(Guid, SaasTenantSetPasswordDto)
Declaration
[Authorize("Saas.Tenants.SetPassword")]
public virtual Task SetPasswordAsync(Guid id, SaasTenantSetPasswordDto input)
Parameters
Returns
UpdateAsync(Guid, SaasTenantUpdateDto)
Declaration
[Authorize("Saas.Tenants.Update")]
public virtual Task<SaasTenantDto> UpdateAsync(Guid id, SaasTenantUpdateDto input)
Parameters
Returns
UpdateConnectionStringsAsync(Guid, SaasTenantConnectionStringsDto)
Declaration
[Authorize("Saas.Tenants.ManageConnectionStrings")]
public virtual Task UpdateConnectionStringsAsync(Guid id, SaasTenantConnectionStringsDto input)
Parameters
Returns
Implements
Extension Methods