diff --git a/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs b/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs index cc1218ec7f..ad63b2155c 100644 --- a/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs +++ b/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs @@ -4,7 +4,9 @@ namespace Polly.Bulkhead; /// /// A bulkhead-isolation policy which can be applied to delegates. /// +#pragma warning disable CA1063 public class AsyncBulkheadPolicy : AsyncPolicy, IBulkheadPolicy +#pragma warning restore CA1063 { private readonly SemaphoreSlim _maxParallelizationSemaphore; private readonly SemaphoreSlim _maxQueuedActionsSemaphore; @@ -68,7 +70,9 @@ public void Dispose() /// A bulkhead-isolation policy which can be applied to delegates. /// /// The return type of delegates which may be executed through the policy. +#pragma warning disable CA1063 public class AsyncBulkheadPolicy : AsyncPolicy, IBulkheadPolicy +#pragma warning restore CA1063 { private readonly SemaphoreSlim _maxParallelizationSemaphore; private readonly SemaphoreSlim _maxQueuedActionsSemaphore; diff --git a/src/Polly/Bulkhead/BulkheadPolicy.cs b/src/Polly/Bulkhead/BulkheadPolicy.cs index 93f6ef060d..a998568c79 100644 --- a/src/Polly/Bulkhead/BulkheadPolicy.cs +++ b/src/Polly/Bulkhead/BulkheadPolicy.cs @@ -4,7 +4,9 @@ namespace Polly.Bulkhead; /// /// A bulkhead-isolation policy which can be applied to delegates. /// +#pragma warning disable CA1063 public class BulkheadPolicy : Policy, IBulkheadPolicy +#pragma warning restore CA1063 { private readonly SemaphoreSlim _maxParallelizationSemaphore; private readonly SemaphoreSlim _maxQueuedActionsSemaphore; @@ -66,7 +68,9 @@ public void Dispose() /// A bulkhead-isolation policy which can be applied to delegates returning a value of type . /// /// The type of the result. +#pragma warning disable CA1063 public class BulkheadPolicy : Policy, IBulkheadPolicy +#pragma warning restore CA1063 { private readonly SemaphoreSlim _maxParallelizationSemaphore; private readonly SemaphoreSlim _maxQueuedActionsSemaphore; diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 0d1d9ab73f..726c64b6a9 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -7,8 +7,7 @@ Library 70 true - $(NoWarn);CA1063 - + $(NoWarn);RS0037