Skip to content

Commit e82b0b9

Browse files
authored
Allow users to define the polling re-connect policy (#662)
1 parent 557eff0 commit e82b0b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/Halibut/HalibutRuntimeBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public HalibutRuntimeBuilder WithTypeRegistry(Action<TypeRegistryBuilder> config
101101
return this;
102102
}
103103

104-
internal HalibutRuntimeBuilder WithPollingReconnectRetryPolicy(Func<RetryPolicy> pollingReconnectRetryPolicy)
104+
public HalibutRuntimeBuilder WithPollingReconnectRetryPolicy(Func<RetryPolicy> pollingReconnectRetryPolicy)
105105
{
106106
this.pollingReconnectRetryPolicy = pollingReconnectRetryPolicy;
107107
return this;

source/Halibut/Util/RetryPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class RetryPolicy
77
{
88
readonly Stopwatch stopwatch = new Stopwatch();
99

10-
internal RetryPolicy(double backoffMultiplier, TimeSpan minimumDelay, TimeSpan maximumDelay)
10+
public RetryPolicy(double backoffMultiplier, TimeSpan minimumDelay, TimeSpan maximumDelay)
1111
{
1212
if (backoffMultiplier <= 0) throw new ArgumentOutOfRangeException(nameof(backoffMultiplier), "Must be greater than zero");
1313

0 commit comments

Comments
 (0)