Class TenantClientProxy
Implements
Inherited Members
Namespace: Volo.Saas.Host
Assembly: Volo.Saas.Host.HttpApi.Client.dll
Syntax
[Dependency(ReplaceServices = true)]
[ExposeServices(new Type[] { typeof(ITenantAppService), typeof(TenantClientProxy) })]
public class TenantClientProxy : ClientProxyBase<ITenantAppService>, 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
TenantClientProxy()
Declaration
public TenantClientProxy()
Methods
ApplyDatabaseMigrationsAsync(Guid)
Declaration
public virtual Task ApplyDatabaseMigrationsAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
CheckConnectionStringAsync(string)
Declaration
public virtual Task<bool> CheckConnectionStringAsync(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
string | connectionString |
Returns
Type | Description |
---|---|
Task<bool> |
CreateAsync(SaasTenantCreateDto)
Declaration
public virtual Task<SaasTenantDto> CreateAsync(SaasTenantCreateDto input)
Parameters
Type | Name | Description |
---|---|---|
SaasTenantCreateDto | input |
Returns
Type | Description |
---|---|
Task<SaasTenantDto> |
DeleteAsync(Guid)
Declaration
public virtual Task DeleteAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetAsync(Guid)
Declaration
public virtual Task<SaasTenantDto> GetAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<SaasTenantDto> |
GetConnectionStringsAsync(Guid)
Declaration
public virtual Task<SaasTenantConnectionStringsDto> GetConnectionStringsAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<SaasTenantConnectionStringsDto> |
GetDatabasesAsync()
Declaration
public virtual Task<SaasTenantDatabasesDto> GetDatabasesAsync()
Returns
Type | Description |
---|---|
Task<SaasTenantDatabasesDto> |
GetEditionLookupAsync()
Declaration
public virtual Task<List<EditionLookupDto>> GetEditionLookupAsync()
Returns
Type | Description |
---|---|
Task<List<EditionLookupDto>> |
GetListAsync(GetTenantsInput)
Declaration
public virtual Task<PagedResultDto<SaasTenantDto>> GetListAsync(GetTenantsInput input)
Parameters
Type | Name | Description |
---|---|---|
GetTenantsInput | input |
Returns
Type | Description |
---|---|
Task<PagedResultDto<SaasTenantDto>> |
SetPasswordAsync(Guid, SaasTenantSetPasswordDto)
Declaration
public virtual Task SetPasswordAsync(Guid id, SaasTenantSetPasswordDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
SaasTenantSetPasswordDto | input |
Returns
Type | Description |
---|---|
Task |
UpdateAsync(Guid, SaasTenantUpdateDto)
Declaration
public virtual Task<SaasTenantDto> UpdateAsync(Guid id, SaasTenantUpdateDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
SaasTenantUpdateDto | input |
Returns
Type | Description |
---|---|
Task<SaasTenantDto> |
UpdateConnectionStringsAsync(Guid, SaasTenantConnectionStringsDto)
Declaration
public virtual Task UpdateConnectionStringsAsync(Guid id, SaasTenantConnectionStringsDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
SaasTenantConnectionStringsDto | input |
Returns
Type | Description |
---|---|
Task |