Table of Contents

Class GetVerificationStatusQueryHandler

Namespace
SEBT.Portal.UseCases.IdProofing
Assembly
SEBT.Portal.UseCases.dll

Handles querying the verification status of a challenge. Performs check-on-read expiration: if a Pending challenge is past its ExpiresAt, it is transitioned to Expired before responding.

public class GetVerificationStatusQueryHandler : IQueryHandler<GetVerificationStatusQuery, VerificationStatusResponse>
Inheritance
object
GetVerificationStatusQueryHandler
Implements

Constructors

GetVerificationStatusQueryHandler(IDocVerificationChallengeRepository, ILogger<GetVerificationStatusQueryHandler>)

Handles querying the verification status of a challenge. Performs check-on-read expiration: if a Pending challenge is past its ExpiresAt, it is transitioned to Expired before responding.

public GetVerificationStatusQueryHandler(IDocVerificationChallengeRepository challengeRepository, ILogger<GetVerificationStatusQueryHandler> logger)

Parameters

challengeRepository IDocVerificationChallengeRepository
logger ILogger<GetVerificationStatusQueryHandler>

Methods

Handle(GetVerificationStatusQuery, CancellationToken)

public Task<Result<VerificationStatusResponse>> Handle(GetVerificationStatusQuery query, CancellationToken cancellationToken = default)

Parameters

query GetVerificationStatusQuery
cancellationToken CancellationToken

Returns

Task<Result<VerificationStatusResponse>>