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();