Table of Contents

Class GetTenantByIdQueryHandler

Namespace
KadicAuth.Application.Tenants.Queries
Assembly
KadicAuth.Application.dll
public sealed class GetTenantByIdQueryHandler : IRequestHandler<GetTenantByIdQuery, TenantDto?>
Inheritance
object
GetTenantByIdQueryHandler
Implements
IRequestHandler<GetTenantByIdQuery, TenantDto>

Constructors

GetTenantByIdQueryHandler(ITenantRepository)

public GetTenantByIdQueryHandler(ITenantRepository tenantRepository)

Parameters

tenantRepository ITenantRepository

Methods

Handle(GetTenantByIdQuery, CancellationToken)

Handles a request

public Task<TenantDto?> Handle(GetTenantByIdQuery request, CancellationToken cancellationToken)

Parameters

request GetTenantByIdQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<TenantDto>

Response from the request