Table of Contents

Class CreateRoleCommandHandler

Namespace
KadicAuth.Application.Roles.Commands
Assembly
KadicAuth.Application.dll
public sealed class CreateRoleCommandHandler : IRequestHandler<CreateRoleCommand, Result<Guid>>
Inheritance
object
CreateRoleCommandHandler
Implements
IRequestHandler<CreateRoleCommand, Result<Guid>>

Constructors

CreateRoleCommandHandler(IRoleRepository, IPermissionRepository, ICurrentUser, IPlatformAdminService, ITenantIdContext, IStringLocalizer<AuthMessages>)

public CreateRoleCommandHandler(IRoleRepository roleRepository, IPermissionRepository permissionRepository, ICurrentUser currentUser, IPlatformAdminService platformAdminService, ITenantIdContext tenantIdContext, IStringLocalizer<AuthMessages> localizer)

Parameters

roleRepository IRoleRepository
permissionRepository IPermissionRepository
currentUser ICurrentUser
platformAdminService IPlatformAdminService
tenantIdContext ITenantIdContext
localizer IStringLocalizer<AuthMessages>

Methods

Handle(CreateRoleCommand, CancellationToken)

Handles a request

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

Parameters

request CreateRoleCommand

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<Result<Guid>>

Response from the request