Compare commits

..

1 commit

Author SHA1 Message Date
5c2911ea6c
feat: hide pipelines internals from stack trace
Some checks failed
default / dotnet-default-workflow (pull_request) Failing after 3m2s
2026-05-29 22:53:58 +02:00

View file

@ -1,14 +1,12 @@
// Copyright (c) The Geekeey Authors // Copyright (c) The Geekeey Authors
// SPDX-License-Identifier: EUPL-1.2 // SPDX-License-Identifier: EUPL-1.2
using System.Runtime.CompilerServices;
namespace Geekeey.Request.Dispatcher.Tests; namespace Geekeey.Request.Dispatcher.Tests;
public class StreamOpenBehavior<TRequest, TResponse>(StreamTestTracker tracker) : IStreamRequestBehavior<TRequest, TResponse> public class StreamOpenBehavior<TRequest, TResponse>(StreamTestTracker tracker) : IStreamRequestBehavior<TRequest, TResponse>
where TRequest : IStreamRequest<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; tracker.Executed = true;
await foreach (var response in next(request, cancellationToken)) await foreach (var response in next(request, cancellationToken))