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