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