Skip to content

Commit

Permalink
Add [DebuggerDisableUserUnhandledExceptions]
Browse files Browse the repository at this point in the history
Add `[DebuggerDisableUserUnhandledExceptions]` to `StrategyHelper`.
  • Loading branch information
martincostello committed Sep 19, 2024
1 parent 96bd445 commit 52ff760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Polly.Core/Utils/StrategyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

internal static class StrategyHelper
{
[DebuggerDisableUserUnhandledExceptions]
public static ValueTask<Outcome<TResult>> ExecuteCallbackSafeAsync<TResult, TState>(
Func<ResilienceContext, TState, ValueTask<Outcome<TResult>>> callback,
ResilienceContext context,
Expand All @@ -29,6 +30,7 @@ public static ValueTask<Outcome<TResult>> ExecuteCallbackSafeAsync<TResult, TSta
return new ValueTask<Outcome<TResult>>(Outcome.FromException<TResult>(e));
}

[DebuggerDisableUserUnhandledExceptions]
static async ValueTask<Outcome<T>> AwaitTask<T>(ValueTask<Outcome<T>> task, bool continueOnCapturedContext)
{
try
Expand Down

0 comments on commit 52ff760

Please sign in to comment.