Class TenantController
Inheritance
TenantController
Implements
IApplicationService
IRemoteService
Assembly: Volo.Saas.Host.HttpApi.dll
Syntax
[Controller]
[Area("saas")]
[Route("/api/saas/tenants")]
public class TenantController : AbpControllerBase, ITenantAppService, ICrudAppService<SaasTenantDto, Guid, GetTenantsInput, SaasTenantCreateDto, SaasTenantUpdateDto>, ICrudAppService<SaasTenantDto, SaasTenantDto, Guid, GetTenantsInput, SaasTenantCreateDto, SaasTenantUpdateDto>, IReadOnlyAppService<SaasTenantDto, SaasTenantDto, Guid, GetTenantsInput>, IApplicationService, IRemoteService, ICreateUpdateAppService<SaasTenantDto, Guid, SaasTenantCreateDto, SaasTenantUpdateDto>, ICreateAppService<SaasTenantDto, SaasTenantCreateDto>, IUpdateAppService<SaasTenantDto, Guid, SaasTenantUpdateDto>, IDeleteAppService<Guid>
Constructors
TenantController(ITenantAppService)
Declaration
public TenantController(ITenantAppService service)
Parameters
Properties
Service
Declaration
protected ITenantAppService Service { get; }
Property Value
Methods
ApplyDatabaseMigrationsAsync(Guid)
Declaration
[HttpPost]
[Route("{id}/apply-database-migrations")]
public Task ApplyDatabaseMigrationsAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
CheckConnectionStringAsync(string)
Declaration
[HttpGet]
[Route("check-connection-string")]
public Task<bool> CheckConnectionStringAsync(string connectionString)
Parameters
Type |
Name |
Description |
string |
connectionString |
|
Returns
CreateAsync(SaasTenantCreateDto)
Declaration
[HttpPost]
public virtual Task<SaasTenantDto> CreateAsync(SaasTenantCreateDto input)
Parameters
Returns
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Route("{id}")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAsync(Guid)
Declaration
[HttpGet]
[Route("{id}")]
public virtual Task<SaasTenantDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetConnectionStringsAsync(Guid)
Declaration
[HttpGet]
[Route("{id}/connection-strings")]
public Task<SaasTenantConnectionStringsDto> GetConnectionStringsAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetDatabasesAsync()
Declaration
[HttpGet]
[Route("databases")]
public Task<SaasTenantDatabasesDto> GetDatabasesAsync()
Returns
GetEditionLookupAsync()
Declaration
[HttpGet]
[Route("lookup/editions")]
public Task<List<EditionLookupDto>> GetEditionLookupAsync()
Returns
Declaration
[HttpGet]
public virtual Task<PagedResultDto<SaasTenantDto>> GetListAsync(GetTenantsInput input)
Parameters
Returns
SetPasswordAsync(Guid, SaasTenantSetPasswordDto)
Declaration
[HttpPut]
[Route("{id}/set-password")]
public Task SetPasswordAsync(Guid id, SaasTenantSetPasswordDto input)
Parameters
Returns
UpdateAsync(Guid, SaasTenantUpdateDto)
Declaration
[HttpPut]
[Route("{id}")]
public virtual Task<SaasTenantDto> UpdateAsync(Guid id, SaasTenantUpdateDto input)
Parameters
Returns
UpdateConnectionStringsAsync(Guid, SaasTenantConnectionStringsDto)
Declaration
[HttpPut]
[Route("{id}/connection-strings")]
public Task UpdateConnectionStringsAsync(Guid id, SaasTenantConnectionStringsDto input)
Parameters
Returns
Implements
Volo.Abp.Application.Services.ICrudAppService<,,,,>
Volo.Abp.Application.Services.ICrudAppService<,,,,,>
Volo.Abp.Application.Services.IReadOnlyAppService<,,,>
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
Volo.Abp.Application.Services.ICreateUpdateAppService<,,,>
Volo.Abp.Application.Services.ICreateAppService<,>
Volo.Abp.Application.Services.IUpdateAppService<,,>
Volo.Abp.Application.Services.IDeleteAppService<>