KøbBuy
1-855-856-7678
SupportSupport
When the StorageClientException is thrown it indicates that there was a problem with the request the client made to the server. Any timeout related exceptions are automatically retried, and therefore, retrying the operation yourself will almost certainly result in the same exception being thrown. The one exception to this rule is when the ExtendedErrorInformation property indicates that ErrorCode is equal to InternalError.
bool canRetry = true; while (canRetry) { try { // Perform data access operation } catch (StorageClientException ex) { if (!ex.ExtendedErrorInformation.ErrorCode.Equals( StorageErrorCodeStrings.InternalError.ToString()) { canRetry = false; } else { // Wait before retrying the operation System.Threading.Thread.Sleep(1000); } } }