Compare commits
1 commit
4d33d5ab4c
...
5c2911ea6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
5c2911ea6c |
1 changed files with 1 additions and 3 deletions
|
|
@ -1,14 +1,12 @@
|
|||
// Copyright (c) The Geekeey Authors
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Geekeey.Request.Dispatcher.Tests;
|
||||
|
||||
public class StreamOpenBehavior<TRequest, TResponse>(StreamTestTracker tracker) : IStreamRequestBehavior<TRequest, TResponse>
|
||||
where TRequest : IStreamRequest<TResponse>
|
||||
{
|
||||
public async IAsyncEnumerable<TResponse> HandleAsync(TRequest request, StreamHandlerDelegate<TResponse> next, [EnumeratorCancellation] CancellationToken cancellationToken)
|
||||
public async IAsyncEnumerable<TResponse> HandleAsync(TRequest request, StreamHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
|
||||
{
|
||||
tracker.Executed = true;
|
||||
await foreach (var response in next(request, cancellationToken))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue