Table of Contents

Class CreateTenantBranchCommandHandler

Namespace
KadicAuth.Application.TenantBranches.Commands
Assembly
KadicAuth.Application.dll
public sealed class CreateTenantBranchCommandHandler : IRequestHandler<CreateTenantBranchCommand, Result<Guid>>
Inheritance
object
CreateTenantBranchCommandHandler
Implements
IRequestHandler<CreateTenantBranchCommand, Result<Guid>>

Constructors

CreateTenantBranchCommandHandler(ITenantBranchRepository, ITenantRepository, ICurrentUser, IPlatformAdminService, ITenantIdContext, IStringLocalizer<AuthMessages>)

public CreateTenantBranchCommandHandler(ITenantBranchRepository branchRepository, ITenantRepository tenantRepository, ICurrentUser currentUser, IPlatformAdminService platformAdminService, ITenantIdContext tenantIdContext, IStringLocalizer<AuthMessages> localizer)

Parameters

branchRepository ITenantBranchRepository
tenantRepository ITenantRepository
currentUser ICurrentUser
platformAdminService IPlatformAdminService
tenantIdContext ITenantIdContext
localizer IStringLocalizer<AuthMessages>

Methods

Handle(CreateTenantBranchCommand, CancellationToken)

Handles a request

public Task<Result<Guid>> Handle(CreateTenantBranchCommand request, CancellationToken cancellationToken)

Parameters

request CreateTenantBranchCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<Guid>>

Response from the request