Some checks failed
default / dotnet-default-workflow (push) Has been cancelled
Add a simple in memory dispatcher for scalar requests and stream request.
12 lines
No EOL
497 B
C#
12 lines
No EOL
497 B
C#
// Copyright (c) The Geekeey Authors
|
|
// SPDX-License-Identifier: EUPL-1.2
|
|
|
|
namespace Geekeey.Request.Tests;
|
|
|
|
public class ExplicitGenericStreamHandler<T> : IStreamRequestHandler<ExplicitGenericStreamRequest, string>
|
|
{
|
|
async IAsyncEnumerable<string> IStreamRequestHandler<ExplicitGenericStreamRequest, string>.HandleAsync(ExplicitGenericStreamRequest request, [System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken ct)
|
|
{
|
|
yield return $"{request.Value}-ExplicitHandled";
|
|
}
|
|
} |