From dd3b03d8bb612a90da7049f0963f0d2f1a896b94 Mon Sep 17 00:00:00 2001 From: Rasmus Christian Pedersen Date: Sat, 24 Jan 2015 01:28:41 +0100 Subject: [PATCH] fix warning CA2211 in AzureClient Changed fields MaxRetries and TimeSpan to read-only. --- src/OrleansAzureUtils/AzureClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrleansAzureUtils/AzureClient.cs b/src/OrleansAzureUtils/AzureClient.cs index 372f8fb2306..40ff610cedb 100644 --- a/src/OrleansAzureUtils/AzureClient.cs +++ b/src/OrleansAzureUtils/AzureClient.cs @@ -38,9 +38,9 @@ namespace Orleans.Runtime.Host public static class AzureClient { /// Number of retry attempts to make when searching for gateway silos to connect to. - public static int MaxRetries = AzureConstants.MAX_RETRIES; // 120 x 5s = Total: 10 minutes + public static readonly int MaxRetries = AzureConstants.MAX_RETRIES; // 120 x 5s = Total: 10 minutes /// Amount of time to pause before each retry attempt. - public static TimeSpan StartupRetryPause = AzureConstants.STARTUP_TIME_PAUSE; // 5 seconds + public static readonly TimeSpan StartupRetryPause = AzureConstants.STARTUP_TIME_PAUSE; // 5 seconds /// /// Whether the Orleans Azure client runtime has already been initialized