Table of Contents

Class GetRoleByIdQueryHandler

Namespace
KadicAuth.Application.Roles.Queries
Assembly
KadicAuth.Application.dll
public sealed class GetRoleByIdQueryHandler : IRequestHandler<GetRoleByIdQuery, RoleDto?>
Inheritance
object
GetRoleByIdQueryHandler
Implements
IRequestHandler<GetRoleByIdQuery, RoleDto>

Constructors

GetRoleByIdQueryHandler(IRoleRepository, ITenantIdContext)

public GetRoleByIdQueryHandler(IRoleRepository roleRepository, ITenantIdContext tenantIdContext)

Parameters

roleRepository IRoleRepository
tenantIdContext ITenantIdContext

Methods

Handle(GetRoleByIdQuery, CancellationToken)

Handles a request

public Task<RoleDto?> Handle(GetRoleByIdQuery request, CancellationToken cancellationToken)

Parameters

request GetRoleByIdQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<RoleDto>

Response from the request