request/src/request.dispatcher.tests/_fixtures/ConstrainedScalarHandler.cs
Louis Seubert e1e02c44a0
All checks were successful
default / dotnet-default-workflow (push) Successful in 2m0s
feat: create request projects for basic CQRS
2026-05-26 22:19:51 +02:00

13 lines
409 B
C#

// Copyright (c) The Geekeey Authors
// SPDX-License-Identifier: EUPL-1.2
namespace Geekeey.Request.Dispatcher.Tests;
public class ConstrainedScalarHandler<TRequest> : IScalarRequestHandler<TRequest, string>
where TRequest : ConstrainedScalarRequest
{
public Task<string> HandleAsync(TRequest request, CancellationToken cancellationToken)
{
return Task.FromResult($"{request.Value}-Constrained");
}
}