Class ActivateTenantBranchCommandHandler
- Namespace
- KadicAuth.Application.TenantBranches.Commands
- Assembly
- KadicAuth.Application.dll
public sealed class ActivateTenantBranchCommandHandler : IRequestHandler<ActivateTenantBranchCommand, Result<string>>
- Inheritance
-
objectActivateTenantBranchCommandHandler
- Implements
Constructors
ActivateTenantBranchCommandHandler(ITenantBranchRepository, ICurrentUser, IStringLocalizer<AuthMessages>)
public ActivateTenantBranchCommandHandler(ITenantBranchRepository branchRepository, ICurrentUser currentUser, IStringLocalizer<AuthMessages> localizer)
Parameters
branchRepositoryITenantBranchRepositorycurrentUserICurrentUserlocalizerIStringLocalizer<AuthMessages>
Methods
Handle(ActivateTenantBranchCommand, CancellationToken)
Handles a request
public Task<Result<string>> Handle(ActivateTenantBranchCommand request, CancellationToken cancellationToken)
Parameters
requestActivateTenantBranchCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Result<string>>
Response from the request