Permalink
Browse files

Merge pull request #2041 from jeffwilcox/release-rt-fix

Long-running operation fix
  • Loading branch information...
2 parents 2bcf983 + 45e3834 commit 3f0fac387f633d4a445c09fee028f4daedba74fb @jeffwilcox jeffwilcox committed Oct 19, 2013
@@ -4838,7 +4838,7 @@ public VirtualNetworkManagementClient Client
GatewayOperationResponse originalResponse = await client.Gateways.BeginConnectDisconnectOrTestingAsync(virtualNetworkName, localNetworkSiteName, parameters, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
GatewayGetOperationStatusResponse result = await client.Gateways.GetOperationStatusAsync(originalResponse.OperationId, cancellationToken).ConfigureAwait(false);
- int delayInSeconds = 100;
+ int delayInSeconds = 30;
while (result.Status == GatewayOperationStatus.InProgress)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -5063,7 +5063,7 @@ public VirtualNetworkManagementClient Client
GatewayOperationResponse originalResponse = await client.Gateways.BeginCreatingAsync(virtualNetworkName, parameters, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
GatewayGetOperationStatusResponse result = await client.Gateways.GetOperationStatusAsync(originalResponse.OperationId, cancellationToken).ConfigureAwait(false);
- int delayInSeconds = 100;
+ int delayInSeconds = 30;
while (result.Status == GatewayOperationStatus.InProgress)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -5261,7 +5261,7 @@ public VirtualNetworkManagementClient Client
GatewayOperationResponse originalResponse = await client.Gateways.BeginDeletingAsync(virtualNetworkName, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
GatewayGetOperationStatusResponse result = await client.Gateways.GetOperationStatusAsync(originalResponse.OperationId, cancellationToken).ConfigureAwait(false);
- int delayInSeconds = 100;
+ int delayInSeconds = 30;
while (result.Status == GatewayOperationStatus.InProgress)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -5467,7 +5467,7 @@ public VirtualNetworkManagementClient Client
GatewayOperationResponse originalResponse = await client.Gateways.BeginFailoverAsync(virtualNetworkName, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
GatewayGetOperationStatusResponse result = await client.Gateways.GetOperationStatusAsync(originalResponse.OperationId, cancellationToken).ConfigureAwait(false);
- int delayInSeconds = 100;
+ int delayInSeconds = 30;
while (result.Status == GatewayOperationStatus.InProgress)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -6828,7 +6828,7 @@ public VirtualNetworkManagementClient Client
GatewayOperationResponse originalResponse = await client.Gateways.BeginResetSharedKeyAsync(virtualNetworkName, localNetworkName, parameters, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
GatewayGetOperationStatusResponse result = await client.Gateways.GetOperationStatusAsync(originalResponse.OperationId, cancellationToken).ConfigureAwait(false);
- int delayInSeconds = 100;
+ int delayInSeconds = 30;
while (result.Status == GatewayOperationStatus.InProgress)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -7760,7 +7760,7 @@ public VirtualNetworkManagementClient Client
OperationResponse originalResponse = await client.Networks.BeginSettingConfigurationAsync(parameters, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
VirtualNetworkOperationStatusResponse result = await client.GetOperationStatusAsync(originalResponse.RequestId, cancellationToken).ConfigureAwait(false);
- int delayInSeconds = 100;
+ int delayInSeconds = 30;
while (result.Status == OperationStatus.InProgress)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -2581,7 +2581,7 @@ public StorageManagementClient Client
OperationResponse originalResponse = await client.StorageAccounts.BeginCreatingAsync(parameters, cancellationToken).ConfigureAwait(false);
cancellationToken.ThrowIfCancellationRequested();
StorageOperationStatusResponse result = await client.GetOperationStatusAsync(originalResponse.RequestId, cancellationToken).ConfigureAwait(false);
- int delayInSeconds = 100;
+ int delayInSeconds = 30;
while (result.Status == OperationStatus.InProgress)
{
cancellationToken.ThrowIfCancellationRequested();

0 comments on commit 3f0fac3

Please sign in to comment.