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