All checks were successful
default / dotnet-default-workflow (push) Successful in 1m27s
Add a simple in memory dispatcher for scalar requests and stream request.
12 lines
No EOL
380 B
C#
12 lines
No EOL
380 B
C#
// Copyright (c) The Geekeey Authors
|
|
// SPDX-License-Identifier: EUPL-1.2
|
|
|
|
namespace Geekeey.Request.Tests;
|
|
|
|
public class ScalarTestWrapperHandler<T> : IScalarRequestHandler<ScalarTestWrapperRequest<T>, string>
|
|
{
|
|
public Task<string> HandleAsync(ScalarTestWrapperRequest<T> request, CancellationToken cancellationToken)
|
|
{
|
|
return Task.FromResult($"Handled-{request.Item}");
|
|
}
|
|
} |