Class CreateTenantWithBranchesCommandHandler
- Namespace
- KadicAuth.Application.Tenants.Commands
- Assembly
- KadicAuth.Application.dll
public sealed class CreateTenantWithBranchesCommandHandler : IRequestHandler<CreateTenantWithBranchesCommand, Result<Guid>>
- Inheritance
-
objectCreateTenantWithBranchesCommandHandler
- Implements
Constructors
CreateTenantWithBranchesCommandHandler(ITenantRepository, IPlanRepository, IImageManager, ILogger<CreateTenantWithBranchesCommandHandler>, IStringLocalizer<AuthMessages>)
public CreateTenantWithBranchesCommandHandler(ITenantRepository tenantRepository, IPlanRepository planRepository, IImageManager imageManager, ILogger<CreateTenantWithBranchesCommandHandler> logger, IStringLocalizer<AuthMessages> localizer)
Parameters
tenantRepositoryITenantRepositoryplanRepositoryIPlanRepositoryimageManagerIImageManagerloggerILogger<CreateTenantWithBranchesCommandHandler>localizerIStringLocalizer<AuthMessages>
Methods
Handle(CreateTenantWithBranchesCommand, CancellationToken)
Handles a request
public Task<Result<Guid>> Handle(CreateTenantWithBranchesCommand request, CancellationToken cancellationToken)
Parameters
requestCreateTenantWithBranchesCommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<Result<Guid>>
Response from the request