Skip to content

Commit dd3b03d

Browse files
committed
fix warning CA2211 in AzureClient
Changed fields MaxRetries and TimeSpan to read-only.
1 parent d083eed commit dd3b03d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OrleansAzureUtils/AzureClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ namespace Orleans.Runtime.Host
3838
public static class AzureClient
3939
{
4040
/// <summary>Number of retry attempts to make when searching for gateway silos to connect to.</summary>
41-
public static int MaxRetries = AzureConstants.MAX_RETRIES; // 120 x 5s = Total: 10 minutes
41+
public static readonly int MaxRetries = AzureConstants.MAX_RETRIES; // 120 x 5s = Total: 10 minutes
4242
/// <summary>Amount of time to pause before each retry attempt.</summary>
43-
public static TimeSpan StartupRetryPause = AzureConstants.STARTUP_TIME_PAUSE; // 5 seconds
43+
public static readonly TimeSpan StartupRetryPause = AzureConstants.STARTUP_TIME_PAUSE; // 5 seconds
4444

4545
/// <summary>
4646
/// Whether the Orleans Azure client runtime has already been initialized

0 commit comments

Comments
 (0)