From 75bafbf901bb2b74ba790957682805fc93751748 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Fri, 2 Aug 2024 14:38:17 +0100 Subject: [PATCH] Apply suggestions from code review Remove redundant attributes. --- src/Polly/Bulkhead/AsyncBulkheadEngine.cs | 1 - src/Polly/Bulkhead/BulkheadEngine.cs | 1 - src/Polly/NoOp/NoOpEngine.cs | 1 - src/Polly/NoOp/NoOpEngineAsync.cs | 1 - src/Polly/RateLimit/AsyncRateLimitEngine.cs | 1 - src/Polly/RateLimit/RateLimitEngine.cs | 1 - 6 files changed, 6 deletions(-) diff --git a/src/Polly/Bulkhead/AsyncBulkheadEngine.cs b/src/Polly/Bulkhead/AsyncBulkheadEngine.cs index 817348d5c9e..9c1a95f47a3 100644 --- a/src/Polly/Bulkhead/AsyncBulkheadEngine.cs +++ b/src/Polly/Bulkhead/AsyncBulkheadEngine.cs @@ -3,7 +3,6 @@ namespace Polly.Bulkhead; internal static class AsyncBulkheadEngine { - [DebuggerDisableUserUnhandledExceptions] internal static async Task ImplementationAsync( Func> action, Context context, diff --git a/src/Polly/Bulkhead/BulkheadEngine.cs b/src/Polly/Bulkhead/BulkheadEngine.cs index bee032b8883..9a613ecd510 100644 --- a/src/Polly/Bulkhead/BulkheadEngine.cs +++ b/src/Polly/Bulkhead/BulkheadEngine.cs @@ -3,7 +3,6 @@ namespace Polly.Bulkhead; internal static class BulkheadEngine { - [DebuggerDisableUserUnhandledExceptions] internal static TResult Implementation( Func action, Context context, diff --git a/src/Polly/NoOp/NoOpEngine.cs b/src/Polly/NoOp/NoOpEngine.cs index 29e4366b673..32ea09a21e0 100644 --- a/src/Polly/NoOp/NoOpEngine.cs +++ b/src/Polly/NoOp/NoOpEngine.cs @@ -3,7 +3,6 @@ namespace Polly.NoOp; internal static partial class NoOpEngine { - [DebuggerDisableUserUnhandledExceptions] internal static TResult Implementation(Func action, Context context, CancellationToken cancellationToken) => action(context, cancellationToken); } diff --git a/src/Polly/NoOp/NoOpEngineAsync.cs b/src/Polly/NoOp/NoOpEngineAsync.cs index aa9b8a6ebf9..ccde237527f 100644 --- a/src/Polly/NoOp/NoOpEngineAsync.cs +++ b/src/Polly/NoOp/NoOpEngineAsync.cs @@ -3,7 +3,6 @@ namespace Polly.NoOp; internal static partial class NoOpEngine { - [DebuggerDisableUserUnhandledExceptions] internal static Task ImplementationAsync(Func> action, Context context, CancellationToken cancellationToken) => action(context, cancellationToken); } diff --git a/src/Polly/RateLimit/AsyncRateLimitEngine.cs b/src/Polly/RateLimit/AsyncRateLimitEngine.cs index b1d279282a7..5b27c565c6c 100644 --- a/src/Polly/RateLimit/AsyncRateLimitEngine.cs +++ b/src/Polly/RateLimit/AsyncRateLimitEngine.cs @@ -3,7 +3,6 @@ namespace Polly.RateLimit; internal static class AsyncRateLimitEngine { - [DebuggerDisableUserUnhandledExceptions] internal static async Task ImplementationAsync( IRateLimiter rateLimiter, Func? retryAfterFactory, diff --git a/src/Polly/RateLimit/RateLimitEngine.cs b/src/Polly/RateLimit/RateLimitEngine.cs index 58fbfeb9bd3..0883f676d65 100644 --- a/src/Polly/RateLimit/RateLimitEngine.cs +++ b/src/Polly/RateLimit/RateLimitEngine.cs @@ -3,7 +3,6 @@ namespace Polly.RateLimit; internal static class RateLimitEngine { - [DebuggerDisableUserUnhandledExceptions] internal static TResult Implementation( IRateLimiter rateLimiter, Func? retryAfterFactory,