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
14
src/request.tests/_fixtures/StreamOrderingOpenBehavior.cs
Normal file
14
src/request.tests/_fixtures/StreamOrderingOpenBehavior.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (c) The Geekeey Authors
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
namespace Geekeey.Request.Tests;
|
||||
|
||||
public class StreamOrderingOpenBehavior<TRequest, TOutput>(StreamTestTracker tracker) : IStreamRequestBehavior<TRequest, TOutput>
|
||||
where TRequest : IStreamRequest<TOutput>
|
||||
{
|
||||
public IAsyncEnumerable<TOutput> HandleAsync(TRequest request, StreamHandlerDelegate<TOutput> next, CancellationToken cancellationToken)
|
||||
{
|
||||
tracker.Log.Add("Open");
|
||||
return next(request, cancellationToken);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue