Class GetAllTenantsQueryHandler
- Namespace
- KadicAuth.Application.Tenants.Queries
- Assembly
- KadicAuth.Application.dll
public sealed class GetAllTenantsQueryHandler : IRequestHandler<GetAllTenantsQuery, PaginatorResponseDto<TenantDto>>
- Inheritance
-
objectGetAllTenantsQueryHandler
- Implements
Constructors
GetAllTenantsQueryHandler(ITenantRepository)
public GetAllTenantsQueryHandler(ITenantRepository tenantRepository)
Parameters
tenantRepositoryITenantRepository
Methods
Handle(GetAllTenantsQuery, CancellationToken)
Handles a request
public Task<PaginatorResponseDto<TenantDto>> Handle(GetAllTenantsQuery request, CancellationToken cancellationToken)
Parameters
requestGetAllTenantsQueryThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<PaginatorResponseDto<TenantDto>>
Response from the request