12 lines
497 B
C#
12 lines
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";
|
||
|
|
}
|
||
|
|
}
|