Skip to content

Commit 482c49c

Browse files
Enable CA1063
- Suppress extant occurrences of CA1063. - Re-enable CA1063.
1 parent 50110f0 commit 482c49c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/Polly/Bulkhead/AsyncBulkheadPolicy.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
78
public 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
7174
public class AsyncBulkheadPolicy<TResult> : AsyncPolicy<TResult>, IBulkheadPolicy<TResult>
75+
#pragma warning restore CA1063
7276
{
7377
private readonly SemaphoreSlim _maxParallelizationSemaphore;
7478
private readonly SemaphoreSlim _maxQueuedActionsSemaphore;

src/Polly/Bulkhead/BulkheadPolicy.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
78
public 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
6972
public class BulkheadPolicy<TResult> : Policy<TResult>, IBulkheadPolicy<TResult>
73+
#pragma warning restore CA1063
7074
{
7175
private readonly SemaphoreSlim _maxParallelizationSemaphore;
7276
private readonly SemaphoreSlim _maxQueuedActionsSemaphore;

src/Polly/Polly.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
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

0 commit comments

Comments
 (0)