Table of Contents

Class GetTenantBranchByIdQueryHandler

Namespace
KadicAuth.Application.TenantBranches.Queries
Assembly
KadicAuth.Application.dll
public sealed class GetTenantBranchByIdQueryHandler : IRequestHandler<GetTenantBranchByIdQuery, TenantBranchDto?>
Inheritance
object
GetTenantBranchByIdQueryHandler
Implements

Constructors

GetTenantBranchByIdQueryHandler(ITenantBranchRepository, ICurrentUser)

public GetTenantBranchByIdQueryHandler(ITenantBranchRepository branchRepository, ICurrentUser currentUser)

Parameters

branchRepository ITenantBranchRepository
currentUser ICurrentUser

Methods

Handle(GetTenantBranchByIdQuery, CancellationToken)

Handles a request

public Task<TenantBranchDto?> Handle(GetTenantBranchByIdQuery request, CancellationToken cancellationToken)

Parameters

request GetTenantBranchByIdQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<TenantBranchDto>

Response from the request