59 references to CancellationToken
Aspire.Hosting.Azure (30)
AzureEnvironmentResource.cs (30)
150
await azureCliCredential.GetTokenAsync(tokenRequest, context.
CancellationToken
)
156
context.
CancellationToken
).ConfigureAwait(false);
163
context.
CancellationToken
).ConfigureAwait(false);
174
var userSecrets = await deploymentStateManager.LoadStateAsync(context.
CancellationToken
)
177
.CreateProvisioningContextAsync(userSecrets, context.
CancellationToken
)
185
context.
CancellationToken
).ConfigureAwait(false);
211
.CreateTaskAsync($"Deploying {resource.Name}", context.
CancellationToken
)
222
configuration, resource, context.
CancellationToken
).ConfigureAwait(false))
228
context.
CancellationToken
).ConfigureAwait(false);
233
resource, provisioningContext, context.
CancellationToken
)
239
context.
CancellationToken
).ConfigureAwait(false);
253
context.
CancellationToken
).ConfigureAwait(false);
267
context.
CancellationToken
).ConfigureAwait(false);
301
context.
CancellationToken
).ConfigureAwait(false);
353
.CreateTaskAsync($"Deploying {computeResource.Name}", context.
CancellationToken
)
365
bicepResource, provisioningContext, context.
CancellationToken
)
379
context.
CancellationToken
).ConfigureAwait(false);
386
context.
CancellationToken
).ConfigureAwait(false);
394
context.
CancellationToken
).ConfigureAwait(false);
408
context.
CancellationToken
).ConfigureAwait(false);
442
var registryName = await registry.Name.GetValueAsync(context.
CancellationToken
).ConfigureAwait(false) ??
445
var loginTask = await context.ReportingStep.CreateTaskAsync($"Logging in to {registryName}", context.
CancellationToken
).ConfigureAwait(false);
448
await AuthenticateToAcrHelper(loginTask, registryName, context.
CancellationToken
, processRunner, configuration).ConfigureAwait(false);
511
var registryName = await registry.Name.GetValueAsync(context.
CancellationToken
).ConfigureAwait(false) ??
524
var targetTag = await cir.GetValueAsync(context.
CancellationToken
).ConfigureAwait(false);
526
var pushTask = await context.ReportingStep.CreateTaskAsync($"Pushing {resource.Name} to {registryName}", context.
CancellationToken
).ConfigureAwait(false);
535
await TagAndPushImage(localImageName, targetTag, context.
CancellationToken
, containerImageBuilder).ConfigureAwait(false);
536
await pushTask.CompleteAsync($"Successfully pushed {resource.Name} to {targetTag}", CompletionState.Completed, context.
CancellationToken
).ConfigureAwait(false);
540
await pushTask.CompleteAsync($"Failed to push {resource.Name}: {ex.Message}", CompletionState.CompletedWithError, context.
CancellationToken
).ConfigureAwait(false);
675
context.
CancellationToken
).ConfigureAwait(false);
Pipelines.AppHost (28)
AppHost.cs (28)
68
.CreateTaskAsync($"Granting file share access to current user", context.
CancellationToken
)
91
context.
CancellationToken
).ConfigureAwait(false);
95
var userObjectId = await getUserProcess.StandardOutput.ReadToEndAsync(context.
CancellationToken
).ConfigureAwait(false);
98
await getUserProcess.WaitForExitAsync(context.
CancellationToken
).ConfigureAwait(false);
102
var error = await getUserProcess.StandardError.ReadToEndAsync(context.
CancellationToken
).ConfigureAwait(false);
106
context.
CancellationToken
).ConfigureAwait(false);
126
context.
CancellationToken
).ConfigureAwait(false);
130
var subscriptionId = await getSubscriptionProcess.StandardOutput.ReadToEndAsync(context.
CancellationToken
).ConfigureAwait(false);
133
await getSubscriptionProcess.WaitForExitAsync(context.
CancellationToken
).ConfigureAwait(false);
137
var error = await getSubscriptionProcess.StandardError.ReadToEndAsync(context.
CancellationToken
).ConfigureAwait(false);
141
context.
CancellationToken
).ConfigureAwait(false);
161
context.
CancellationToken
).ConfigureAwait(false);
165
var resourceGroup = await getResourceGroupProcess.StandardOutput.ReadToEndAsync(context.
CancellationToken
).ConfigureAwait(false);
168
await getResourceGroupProcess.WaitForExitAsync(context.
CancellationToken
).ConfigureAwait(false);
172
var error = await getResourceGroupProcess.StandardError.ReadToEndAsync(context.
CancellationToken
).ConfigureAwait(false);
176
context.
CancellationToken
).ConfigureAwait(false);
199
context.
CancellationToken
).ConfigureAwait(false);
203
await assignRoleProcess.WaitForExitAsync(context.
CancellationToken
).ConfigureAwait(false);
207
var error = await assignRoleProcess.StandardError.ReadToEndAsync(context.
CancellationToken
).ConfigureAwait(false);
211
context.
CancellationToken
).ConfigureAwait(false);
218
context.
CancellationToken
).ConfigureAwait(false);
225
context.
CancellationToken
).ConfigureAwait(false);
267
.CreateTaskAsync($"Uploading {Path.GetFileName(sourcePath)} to {fileShareName}", deployingContext.
CancellationToken
)
277
deployingContext.
CancellationToken
).ConfigureAwait(false);
307
await directoryClient.CreateIfNotExistsAsync(cancellationToken: deployingContext.
CancellationToken
).ConfigureAwait(false);
315
await fileClient.CreateAsync(fileStream.Length, cancellationToken: deployingContext.
CancellationToken
).ConfigureAwait(false);
316
await fileClient.UploadAsync(fileStream, cancellationToken: deployingContext.
CancellationToken
).ConfigureAwait(false);
322
deployingContext.
CancellationToken
).ConfigureAwait(false);
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
49
context.
CancellationToken
).ConfigureAwait(false);