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, ITenantIdContext, IStringLocalizer<AuthMessages>)

public UpdateTenantBranchCommandHandler(ITenantBranchRepository branchRepository, ITenantIdContext tenantIdContext, IStringLocalizer<AuthMessages> localizer)

Parameters

branchRepository ITenantBranchRepository
tenantIdContext ITenantIdContext
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