From 4c795f338f5abe2a11b6a3f3cb9b79d7299aeaa7 Mon Sep 17 00:00:00 2001 From: martincostello Date: Tue, 28 Jan 2025 10:43:15 +0000 Subject: [PATCH] Fix build Add missing CA1063 suppressions. --- src/Polly/Bulkhead/AsyncBulkheadPolicy.cs | 4 ++++ src/Polly/Bulkhead/BulkheadPolicy.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs b/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs index ad63b2155c..1bbc63710f 100644 --- a/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs +++ b/src/Polly/Bulkhead/AsyncBulkheadPolicy.cs @@ -57,8 +57,10 @@ protected override Task ImplementationAsync( cancellationToken); } +#pragma warning disable CA1063 /// public void Dispose() +#pragma warning restore CA1063 { _maxParallelizationSemaphore.Dispose(); _maxQueuedActionsSemaphore.Dispose(); @@ -123,8 +125,10 @@ protected override Task ImplementationAsync( /// public int QueueAvailableCount => Math.Min(_maxQueuedActionsSemaphore.CurrentCount, _maxQueueingActions); +#pragma warning disable CA1063 /// public void Dispose() +#pragma warning restore CA1063 { _maxParallelizationSemaphore.Dispose(); _maxQueuedActionsSemaphore.Dispose(); diff --git a/src/Polly/Bulkhead/BulkheadPolicy.cs b/src/Polly/Bulkhead/BulkheadPolicy.cs index a998568c79..f1f8c47836 100644 --- a/src/Polly/Bulkhead/BulkheadPolicy.cs +++ b/src/Polly/Bulkhead/BulkheadPolicy.cs @@ -52,11 +52,13 @@ protected override TResult Implementation(Func public int QueueAvailableCount => Math.Min(_maxQueuedActionsSemaphore.CurrentCount, _maxQueueingActions); +#pragma warning disable CA1063 /// /// Disposes of the , allowing it to dispose its internal resources. /// Only call on a after all actions executed through the policy have completed. If actions are still executing through the policy when is called, an may be thrown on the actions' threads when those actions complete. /// public void Dispose() +#pragma warning restore CA1063 { _maxParallelizationSemaphore.Dispose(); _maxQueuedActionsSemaphore.Dispose(); @@ -115,11 +117,13 @@ protected override TResult Implementation(Func public int QueueAvailableCount => Math.Min(_maxQueuedActionsSemaphore.CurrentCount, _maxQueueingActions); +#pragma warning disable CA1063 /// /// Disposes of the , allowing it to dispose its internal resources. /// Only call on a after all actions executed through the policy have completed. If actions are still executing through the policy when is called, an may be thrown on the actions' threads when those actions complete. /// public void Dispose() +#pragma warning restore CA1063 { _maxParallelizationSemaphore.Dispose(); _maxQueuedActionsSemaphore.Dispose();