Class CreateTenantBranchCommandHandler
- Namespace
- KadicAuth.Application.TenantBranches.Commands
- Assembly
- KadicAuth.Application.dll
public sealed class CreateTenantBranchCommandHandler : IRequestHandler<CreateTenantBranchCommand, Result<Guid>>
- Inheritance
-
objectCreateTenantBranchCommandHandler
- Implements
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
branchRepositoryITenantBranchRepositorytenantRepositoryITenantRepositorycurrentUserICurrentUserplatformAdminServiceIPlatformAdminServicetenantIdContextITenantIdContextlocalizerIStringLocalizer<AuthMessages>
Methods
Handle(CreateTenantBranchCommand, CancellationToken)
Handles a request
public Task<Result<Guid>> Handle(CreateTenantBranchCommand request, CancellationToken cancellationToken)
Parameters
requestCreateTenantBranchCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Result<Guid>>
Response from the request