Table of Contents

Class UpdateTenantBranchCommandHandler

Namespace
KadicAuth.Application.TenantBranches.Commands
Assembly
KadicAuth.Application.dll
public sealed class UpdateTenantBranchCommandHandler : IRequestHandler<UpdateTenantBranchCommand, Result<string>>
Inheritance
object
UpdateTenantBranchCommandHandler
Implements
IRequestHandler<UpdateTenantBranchCommand, Result<string>>

Constructors

UpdateTenantBranchCommandHandler(ITenantBranchRepository, ICurrentUser, IStringLocalizer<AuthMessages>)

public UpdateTenantBranchCommandHandler(ITenantBranchRepository branchRepository, ICurrentUser currentUser, IStringLocalizer<AuthMessages> localizer)

Parameters

branchRepository ITenantBranchRepository
currentUser ICurrentUser
localizer IStringLocalizer<AuthMessages>

Methods

Handle(UpdateTenantBranchCommand, CancellationToken)

Handles a request

public Task<Result<string>> Handle(UpdateTenantBranchCommand request, CancellationToken cancellationToken)

Parameters

request UpdateTenantBranchCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<string>>

Response from the request