From 9838bb95ac2006cddd6e2b77a0710a47c6ae7109 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 ad63b2155c0..1bbc63710fa 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 a998568c799..f1f8c478366 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();