Skip to content

Commit

Permalink
Hide IsSynchronous property
Browse files Browse the repository at this point in the history
  • Loading branch information
martintmk committed Aug 16, 2023
1 parent 1358076 commit d12db92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Polly.Core/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ Polly.Registry.ResiliencePipelineRegistryOptions<TKey>.ResiliencePipelineRegistr
Polly.ResilienceContext
Polly.ResilienceContext.CancellationToken.get -> System.Threading.CancellationToken
Polly.ResilienceContext.ContinueOnCapturedContext.get -> bool
Polly.ResilienceContext.IsSynchronous.get -> bool
Polly.ResilienceContext.OperationKey.get -> string?
Polly.ResilienceContext.Properties.get -> Polly.ResilienceProperties!
Polly.ResilienceContext.ResilienceEvents.get -> System.Collections.Generic.IReadOnlyList<Polly.Telemetry.ResilienceEvent>!
Expand Down
2 changes: 1 addition & 1 deletion src/Polly.Core/ResilienceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal ResilienceContext()
/// <summary>
/// Gets a value indicating whether the execution is synchronous.
/// </summary>
public bool IsSynchronous { get; private set; }
internal bool IsSynchronous { get; private set; }

/// <summary>
/// Gets the type of the result associated with the execution.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ResiliencePipelineConversionExtensionsTests()
Before = (context, _) =>
{
context.GetType().GetProperty("IsVoid", BindingFlags.Instance | BindingFlags.NonPublic)!.GetValue(context).Should().Be(_isVoid);
context.IsSynchronous.Should().Be(_isSynchronous);
context.GetType().GetProperty("IsSynchronous", BindingFlags.Instance | BindingFlags.NonPublic)!.GetValue(context).Should().Be(_isSynchronous);
context.Properties.Set(Outgoing, "outgoing-value");
context.Properties.GetValue(Incoming, string.Empty).Should().Be("incoming-value");
context.OperationKey.Should().Be("op-key");
Expand Down

0 comments on commit d12db92

Please sign in to comment.