Class GetTenantBranchByIdQueryHandler
- Namespace
- KadicAuth.Application.TenantBranches.Queries
- Assembly
- KadicAuth.Application.dll
public sealed class GetTenantBranchByIdQueryHandler : IRequestHandler<GetTenantBranchByIdQuery, TenantBranchDto?>
- Inheritance
-
objectGetTenantBranchByIdQueryHandler
- Implements
Constructors
GetTenantBranchByIdQueryHandler(ITenantBranchRepository, ICurrentUser)
public GetTenantBranchByIdQueryHandler(ITenantBranchRepository branchRepository, ICurrentUser currentUser)
Parameters
branchRepositoryITenantBranchRepositorycurrentUserICurrentUser
Methods
Handle(GetTenantBranchByIdQuery, CancellationToken)
Handles a request
public Task<TenantBranchDto?> Handle(GetTenantBranchByIdQuery request, CancellationToken cancellationToken)
Parameters
requestGetTenantBranchByIdQueryThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<TenantBranchDto>
Response from the request