From 4e8951f4544a0af435150451096876a4ad02260f Mon Sep 17 00:00:00 2001 From: markcowl Date: Fri, 13 Feb 2015 02:17:48 -0800 Subject: [PATCH 1/2] Fixing managed cache creation issue --- .../Commands.ManagedCache/lib/ManagedCacheClient.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs index 4b34aedca965..9e34ca432cb4 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs @@ -2571,6 +2571,7 @@ public async Task BeginCreatingCacheServiceAsync(string } requestContent = requestDoc.ToString(); + requestContent = System.Text.RegularExpressions.Regex.Replace(requestContent, "\\s* CreateCacheServiceAsync(s TracingAdapter.Enter(invocationId, this, "CreateCacheServiceAsync", tracingParameters); } + cancellationToken.ThrowIfCancellationRequested(); AzureOperationResponse response = await client.CacheServices.BeginCreatingCacheServiceAsync(cloudServiceName, cacheServiceName, parameters, cancellationToken).ConfigureAwait(false); cancellationToken.ThrowIfCancellationRequested(); From 6072bcb8f880251bd5458314b0e9e7301f5a654a Mon Sep 17 00:00:00 2001 From: markcowl Date: Fri, 13 Feb 2015 02:20:30 -0800 Subject: [PATCH 2/2] Remove extra space. --- .../ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs index 9e34ca432cb4..8082c7b4fb28 100644 --- a/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs +++ b/src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs @@ -2954,7 +2954,6 @@ public async Task CreateCacheServiceAsync(s TracingAdapter.Enter(invocationId, this, "CreateCacheServiceAsync", tracingParameters); } - cancellationToken.ThrowIfCancellationRequested(); AzureOperationResponse response = await client.CacheServices.BeginCreatingCacheServiceAsync(cloudServiceName, cacheServiceName, parameters, cancellationToken).ConfigureAwait(false); cancellationToken.ThrowIfCancellationRequested();