19 lines
788 B
C#
19 lines
788 B
C#
|
|
// Copyright (c) The Geekeey Authors
|
||
|
|
// SPDX-License-Identifier: EUPL-1.2
|
||
|
|
|
||
|
|
namespace Geekeey.Request.Dispatcher.Tests;
|
||
|
|
|
||
|
|
public class AmbiguousStreamHandler : IStreamRequestHandler<AmbiguousStreamRequest, string>
|
||
|
|
{
|
||
|
|
// Public method with the same name and signature
|
||
|
|
public async IAsyncEnumerable<string> HandleAsync(AmbiguousStreamRequest request, [System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken)
|
||
|
|
{
|
||
|
|
yield return "Public-Handled";
|
||
|
|
}
|
||
|
|
|
||
|
|
// Explicit interface implementation
|
||
|
|
async IAsyncEnumerable<string> IStreamRequestHandler<AmbiguousStreamRequest, string>.HandleAsync(AmbiguousStreamRequest request, [System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken)
|
||
|
|
{
|
||
|
|
yield return "Interface-Handled";
|
||
|
|
}
|
||
|
|
}
|