Table of Contents

Class CreateTenantWithBranchesCommandHandler

Namespace
KadicAuth.Application.Tenants.Commands
Assembly
KadicAuth.Application.dll
public sealed class CreateTenantWithBranchesCommandHandler : IRequestHandler<CreateTenantWithBranchesCommand, Result<Guid>>
Inheritance
object
CreateTenantWithBranchesCommandHandler
Implements
IRequestHandler<CreateTenantWithBranchesCommand, Result<Guid>>

Constructors

CreateTenantWithBranchesCommandHandler(ITenantRepository, IPlanRepository, IImageManager, ILogger<CreateTenantWithBranchesCommandHandler>, IStringLocalizer<AuthMessages>)

public CreateTenantWithBranchesCommandHandler(ITenantRepository tenantRepository, IPlanRepository planRepository, IImageManager imageManager, ILogger<CreateTenantWithBranchesCommandHandler> logger, IStringLocalizer<AuthMessages> localizer)

Parameters

tenantRepository ITenantRepository
planRepository IPlanRepository
imageManager IImageManager
logger ILogger<CreateTenantWithBranchesCommandHandler>
localizer IStringLocalizer<AuthMessages>

Methods

Handle(CreateTenantWithBranchesCommand, CancellationToken)

Handles a request

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

Parameters

request CreateTenantWithBranchesCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<Guid>>

Response from the request