feat: add inital in memory dispatcher
Some checks failed
default / dotnet-default-workflow (push) Has been cancelled
Some checks failed
default / dotnet-default-workflow (push) Has been cancelled
Add a simple in memory dispatcher for scalar requests and stream request.
This commit is contained in:
commit
c489c68115
145 changed files with 6386 additions and 0 deletions
13
src/request.tests/_fixtures/ConstrainedScalarHandler.cs
Normal file
13
src/request.tests/_fixtures/ConstrainedScalarHandler.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// Copyright (c) The Geekeey Authors
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
namespace Geekeey.Request.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