Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Polly.Core/ResilienceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ internal bool Reset()
return true;
}

#pragma warning disable S2094 // Classes should not be empty
/// <summary>
/// Marker class that represents an unknown result.
/// </summary>
private static class UnknownResult
{
}
private static class UnknownResult;
#pragma warning restore S2094 // Classes should not be empty
}
4 changes: 2 additions & 2 deletions src/Polly.Core/ResiliencePipelineBuilderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private protected ResiliencePipelineBuilderBase(ResiliencePipelineBuilderBase ot
/// Gets or sets the <see cref="ResilienceContextPool"/> associated with the builder.
/// </summary>
/// <remarks>
/// A custom pool can be used to configure custom behavior for creation.
/// A custom pool can be used to configure custom behavior for creation.
/// This can include setting a default <c>continueOnCapturedContext</c> parameter or custom operation key resolution.
/// </remarks>
/// <value>
Expand Down Expand Up @@ -112,7 +112,7 @@ internal void AddPipelineComponent(Func<StrategyBuilderContext, PipelineComponen
throw new InvalidOperationException("Cannot add any more resilience strategies to the builder after it has been used to build a pipeline once.");
}

_entries.Add(new Entry(factory, options));
_entries.Add(new(factory, options));
}

internal PipelineComponent BuildPipelineComponent()
Expand Down
Loading