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