File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ namespace Polly.Bulkhead;
44/// <summary>
55/// A bulkhead-isolation policy which can be applied to delegates.
66/// </summary>
7+ #pragma warning disable CA1063
78public class AsyncBulkheadPolicy : AsyncPolicy , IBulkheadPolicy
9+ #pragma warning restore CA1063
810{
911 private readonly SemaphoreSlim _maxParallelizationSemaphore ;
1012 private readonly SemaphoreSlim _maxQueuedActionsSemaphore ;
@@ -68,7 +70,9 @@ public void Dispose()
6870/// A bulkhead-isolation policy which can be applied to delegates.
6971/// </summary>
7072/// <typeparam name="TResult">The return type of delegates which may be executed through the policy.</typeparam>
73+ #pragma warning disable CA1063
7174public class AsyncBulkheadPolicy < TResult > : AsyncPolicy < TResult > , IBulkheadPolicy < TResult >
75+ #pragma warning restore CA1063
7276{
7377 private readonly SemaphoreSlim _maxParallelizationSemaphore ;
7478 private readonly SemaphoreSlim _maxQueuedActionsSemaphore ;
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ namespace Polly.Bulkhead;
44/// <summary>
55/// A bulkhead-isolation policy which can be applied to delegates.
66/// </summary>
7+ #pragma warning disable CA1063
78public class BulkheadPolicy : Policy , IBulkheadPolicy
9+ #pragma warning restore CA1063
810{
911 private readonly SemaphoreSlim _maxParallelizationSemaphore ;
1012 private readonly SemaphoreSlim _maxQueuedActionsSemaphore ;
@@ -66,7 +68,9 @@ public void Dispose()
6668/// A bulkhead-isolation policy which can be applied to delegates returning a value of type <typeparamref name="TResult"/>.
6769/// </summary>
6870/// <typeparam name="TResult">The type of the result.</typeparam>
71+ #pragma warning disable CA1063
6972public class BulkheadPolicy < TResult > : Policy < TResult > , IBulkheadPolicy < TResult >
73+ #pragma warning restore CA1063
7074{
7175 private readonly SemaphoreSlim _maxParallelizationSemaphore ;
7276 private readonly SemaphoreSlim _maxQueuedActionsSemaphore ;
Original file line number Diff line number Diff line change 77 <ProjectType >Library</ProjectType >
88 <MutationScore >70</MutationScore >
99 <IncludePollyUsings >true</IncludePollyUsings >
10- <NoWarn >$(NoWarn);CA1063</NoWarn >
11- <!-- Public API Analyzers: We do not need to fix these as it would break compatibility with released Polly versions-->
10+ <!-- We do not plan on enabling nullable annotations for Polly -->
1211 <NoWarn >$(NoWarn);RS0037</NoWarn >
1312 </PropertyGroup >
1413
You can’t perform that action at this time.
0 commit comments