feat: hide pipelines internals from stack trace
This commit is contained in:
parent
bae9b2a5f1
commit
4d33d5ab4c
5 changed files with 87 additions and 4 deletions
|
|
@ -1,6 +1,8 @@
|
|||
// Copyright (c) The Geekeey Authors
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
using System.Diagnostics;
|
||||
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
|
|
@ -36,7 +38,7 @@ internal sealed class ScalarRequestInvoker<TRequest, TResponse> : ScalarRequestI
|
|||
|
||||
static ScalarHandlerDelegate<TResponse> Chain(ScalarHandlerDelegate<TResponse> next, IScalarRequestBehavior<TRequest, TResponse> filter)
|
||||
{
|
||||
return (req, ct) => filter.HandleAsync((TRequest)req, next, ct);
|
||||
return [StackTraceHidden] (req, ct) => filter.HandleAsync((TRequest)req, next, ct);
|
||||
}
|
||||
|
||||
Task<TResponse> Head(IScalarRequest<TResponse> r, CancellationToken ct)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue