feat: create request projects for basic CQRS
All checks were successful
default / dotnet-default-workflow (push) Successful in 2m0s
All checks were successful
default / dotnet-default-workflow (push) Successful in 2m0s
This commit is contained in:
commit
e1e02c44a0
190 changed files with 12235 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
// 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");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue