290 references to CancellationToken
Aspire.Hosting (27)
ApplicationModel\DotnetProgramPublishing.cs (3)
135await containerImageBuilder.BuildImageAsync(resource, context.CancellationToken).ConfigureAwait(false); 146context.CancellationToken).ConfigureAwait(false); 157context.CancellationToken).ConfigureAwait(false);
ContainerResourceBuilderExtensions.cs (1)
70ctx.CancellationToken).ConfigureAwait(false);
Pipelines\DistributedApplicationPipeline.cs (7)
54await parameterProcessor.InitializeParametersAsync(context.Model, waitForResolution: true, context.CancellationToken).ConfigureAwait(false); 101context.CancellationToken).ConfigureAwait(false); 111await deploymentStateManager.ClearAllStateAsync(context.CancellationToken).ConfigureAwait(false); 163var containerRuntime = await runtimeResolver.ResolveAsync(context.CancellationToken).ConfigureAwait(false); 165await readiness.EnsureRunningAsync(containerRuntime, context.CancellationToken).ConfigureAwait(false); 199context.CancellationToken).ConfigureAwait(false); 324await deploymentStateManager.ClearAllStateAsync(context.CancellationToken).ConfigureAwait(false);
Pipelines\PipelineStepHelpers.cs (14)
36context.CancellationToken).ConfigureAwait(false); 47var registryEndpoint = await registry.Endpoint.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 65var targetTag = await cir.GetValueAsync(new ValueProviderContext { ExecutionContext = context.ExecutionContext }, context.CancellationToken).ConfigureAwait(false); 69context.CancellationToken).ConfigureAwait(false); 86var containerRuntime = await context.Services.GetRequiredService<IContainerRuntimeResolver>().ResolveAsync(context.CancellationToken).ConfigureAwait(false); 87await containerRuntime.TagImageAsync(localImageName, targetTag, context.CancellationToken).ConfigureAwait(false); 92context.CancellationToken).ConfigureAwait(false); 99context.CancellationToken).ConfigureAwait(false); 107var registryName = await registry.Name.GetValueAsync(context.CancellationToken).ConfigureAwait(false) 111var targetTag = await cir.GetValueAsync(new ValueProviderContext { ExecutionContext = context.ExecutionContext }, context.CancellationToken).ConfigureAwait(false); 115context.CancellationToken).ConfigureAwait(false); 127await containerImageManager.PushImageAsync(resource, context.CancellationToken).ConfigureAwait(false); 132context.CancellationToken).ConfigureAwait(false); 139context.CancellationToken).ConfigureAwait(false);
Publishing\ManifestPublishingExtensions.cs (2)
66var publishingContext = new ManifestPublishingContext(executionContext, manifestPath, jsonWriter, context.CancellationToken); 68await publishingContext.WriteModel(context.Model, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (26)
AzureBicepResource.cs (6)
342.CreateTaskAsync(new MarkdownString($"Deploying **{resource.Name}**"), context.CancellationToken) 350resource, context.CancellationToken).ConfigureAwait(false)) 356context.CancellationToken).ConfigureAwait(false); 361resource, provisioningContext, context.CancellationToken) 367context.CancellationToken).ConfigureAwait(false); 382context.CancellationToken).ConfigureAwait(false);
AzureEnvironmentResource.cs (20)
83await preparer.PrepareResourcesAsync(context.Model, context.CancellationToken).ConfigureAwait(false); 116var provisioningContext = await provisioningContextProvider.CreateProvisioningContextAsync(ctx.CancellationToken).ConfigureAwait(false); 201await tokenCredentialProvider.TokenCredential.GetTokenAsync(tokenRequest, context.CancellationToken) 207context.CancellationToken).ConfigureAwait(false); 214context.CancellationToken).ConfigureAwait(false); 226var azureStateSection = await deploymentStateManager.AcquireSectionAsync("Azure", context.CancellationToken).ConfigureAwait(false); 236context.CancellationToken).ConfigureAwait(false); 254var (subscription, _) = await armClient.GetSubscriptionAndTenantAsync(context.CancellationToken).ConfigureAwait(false); 261var rgResponse = await resourceGroups.GetAsync(resourceGroupName, context.CancellationToken).ConfigureAwait(false); 270context.CancellationToken).ConfigureAwait(false); 280context.CancellationToken).ConfigureAwait(false); 285await foreach (var resource in resourceGroup.GetResourcesAsync(context.CancellationToken).ConfigureAwait(false)) 295context.CancellationToken).ConfigureAwait(false); 310context.CancellationToken).ConfigureAwait(false); 320context.CancellationToken).ConfigureAwait(false); 344context.CancellationToken).ConfigureAwait(false); 356context.CancellationToken).ConfigureAwait(false); 361await resourceGroup.DeleteAsync(WaitUntil.Started, context.CancellationToken).ConfigureAwait(false); 371context.CancellationToken).ConfigureAwait(false); 378context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppEnvironmentResource.cs (3)
156var domainValue = await ContainerAppDomain.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 165context.CancellationToken).ConfigureAwait(false); 180var cancellationToken = context.CancellationToken;
AzureContainerAppResource.cs (2)
48var domainValue = await containerAppEnv.ContainerAppDomain.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false); 49var portalLink = await ContainerAppUrls.GetPortalLinkAsync(containerAppEnv, targetResource.Name.ToLowerInvariant(), ctx.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.AppService (9)
AzureAppServiceEnvironmentResource.cs (6)
184var cancellationToken = context.CancellationToken; 242var dashboardUri = await DashboardUriReference.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 252context.CancellationToken).ConfigureAwait(false); 263context.CancellationToken).ConfigureAwait(false); 304context.CancellationToken).ConfigureAwait(false); 313context.CancellationToken).ConfigureAwait(false);
AzureAppServiceWebSiteResource.cs (3)
53await computerEnv.DeploymentSlotParameter.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false); 59var portalLink = await AppSvcUrls.GetPortalLinkAsync(computerEnv, websiteName, deploymentSlot, ctx.CancellationToken).ConfigureAwait(false); 112var websiteSuffix = await computerEnv.WebSiteSuffix.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.ContainerRegistry (6)
AzureContainerRegistryHelpers.cs (6)
26var registryName = await registry.Name.GetValueAsync(context.CancellationToken).ConfigureAwait(false) ?? 29var registryEndpoint = await registry.Endpoint.GetValueAsync(context.CancellationToken).ConfigureAwait(false) ?? 34context.CancellationToken).ConfigureAwait(false); 49context.CancellationToken).ConfigureAwait(false); 54context.CancellationToken).ConfigureAwait(false); 60context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Kubernetes (15)
AzureKubernetesEnvironmentResource.AksPipeline.cs (15)
213var clusterName = await NameOutputReference.GetValueAsync(context.CancellationToken).ConfigureAwait(false) 233context.CancellationToken).ConfigureAwait(false); 255context.CancellationToken).ConfigureAwait(false); 292context.CancellationToken).ConfigureAwait(false); 316await File.WriteAllTextAsync(kubeConfigPath, kubeConfigContent, context.CancellationToken).ConfigureAwait(false); 347context.CancellationToken).ConfigureAwait(false); 353context.CancellationToken).ConfigureAwait(false); 363.AcquireSectionAsync($"Azure:Deployments:{Name}", context.CancellationToken) 430context.CancellationToken).ConfigureAwait(false); 514context.CancellationToken).ConfigureAwait(false); 535var subnetId = await ((IValueProvider)lb.SubnetIdReference).GetValueAsync(context.CancellationToken).ConfigureAwait(false); 553context.CancellationToken).ConfigureAwait(false); 621var result = await applyResultTask.WaitAsync(context.CancellationToken).ConfigureAwait(false); 646context.CancellationToken).ConfigureAwait(false); 652context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Sandboxes (47)
AzureSandboxContainerDeployment.cs (46)
256context.CancellationToken).ConfigureAwait(false); 257var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false); 281await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 299var diskTask = await context.ReportingStep.CreateTaskAsync($"Creating sandbox disk image for {targetResource.Name}", context.CancellationToken).ConfigureAwait(false); 312await diskTask.CompleteAsync($"Created sandbox disk image {diskImageId}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 326var createTask = await context.ReportingStep.CreateTaskAsync($"Creating sandbox for {targetResource.Name}", context.CancellationToken).ConfigureAwait(false); 338await createTask.CompleteAsync($"Created sandbox {sandboxId}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 343var lifecycleTask = await context.ReportingStep.CreateTaskAsync($"Configuring lifecycle for {resource.Name}", context.CancellationToken).ConfigureAwait(false); 350context.CancellationToken).ConfigureAwait(false); 351await lifecycleTask.CompleteAsync("Lifecycle policy configured", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 358var exposeTask = await context.ReportingStep.CreateTaskAsync($"Exposing sandbox port {endpoint.TargetPort}", context.CancellationToken).ConfigureAwait(false); 376await exposeTask.CompleteAsync(new MarkdownString($"Public URL: [{endpointUrl}]({endpointUrl})"), CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 411await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 477await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 650context.CancellationToken).ConfigureAwait(false); 664context.CancellationToken).ConfigureAwait(false); 712await Task.Delay(TimeSpan.FromSeconds(2), context.CancellationToken).ConfigureAwait(false); 713diskImage = await client.GetDiskImageAsync(scope, diskImage.Id, context.CancellationToken).ConfigureAwait(false); 768context.CancellationToken); 946context.CancellationToken).ConfigureAwait(false); 976.GetValueAsync(new ValueProviderContext { ExecutionContext = context.ExecutionContext, Caller = resource.TargetResource }, context.CancellationToken) 995context.CancellationToken).ConfigureAwait(false); 1070var callbackContext = new CommandLineArgsCallbackContext(args, resource, context.CancellationToken) 1106var result = await runtime.InspectImageConfigAsync(imageReference, context.CancellationToken).ConfigureAwait(false); 1134return context.Services.GetRequiredService<IContainerRuntimeResolver>().ResolveAsync(context.CancellationToken); 1142var callbackContext = new EnvironmentCallbackContext(context.ExecutionContext, resource, environmentVariables, context.CancellationToken) 1183context.CancellationToken).ConfigureAwait(false) ?? string.Empty; 1208.GetValueAsync(new ValueProviderContext { ExecutionContext = context.ExecutionContext, Caller = resource }, context.CancellationToken) 1318context.CancellationToken).ConfigureAwait(false); 1319var stateSection = await deploymentStateManager.AcquireSectionAsync(GetStateSectionName(resource), context.CancellationToken).ConfigureAwait(false); 1334context.CancellationToken).ConfigureAwait(false); 1352context.CancellationToken).ConfigureAwait(false); 1388await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 1397var sandboxesSection = await deploymentStateManager.AcquireCurrentSectionAsync(SandboxStateParentSection, context.CancellationToken).ConfigureAwait(false); 1412context.CancellationToken).ConfigureAwait(false); 1413var stateSection = await deploymentStateManager.AcquireSectionAsync(sectionName, context.CancellationToken).ConfigureAwait(false); 1416await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 1427var cleanupTask = await context.ReportingStep.CreateTaskAsync($"Deleting stale sandbox deployment {sectionName}", context.CancellationToken).ConfigureAwait(false); 1465await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 1466await cleanupTask.CompleteAsync($"Deleted stale sandbox deployment {sectionName}", CompletionState.Completed, context.CancellationToken).ConfigureAwait(false); 1599catch (Exception ex) when (ex is not OperationCanceledException || !context.CancellationToken.IsCancellationRequested) 1612catch (Exception ex) when (ex is not OperationCanceledException || !context.CancellationToken.IsCancellationRequested) 1652sandboxes = await client.ListSandboxesAsync(scope, labelSelector, context.CancellationToken).ConfigureAwait(false); 1674diskImages = await client.ListDiskImagesAsync(scope, labelSelector, context.CancellationToken).ConfigureAwait(false); 2228var effectiveCancellationToken = cancellationToken ?? context.CancellationToken; 2288var effectiveCancellationToken = cancellationToken ?? context.CancellationToken;
AzureSandboxGroupResource.cs (1)
178context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Docker (26)
DockerComposeEnvironmentResource.cs (24)
144var stateSection = await deploymentStateManager.AcquireSectionAsync($"DockerCompose:{Name}", ctx.CancellationToken).ConfigureAwait(false); 152ctx.CancellationToken).ConfigureAwait(false); 164var runtime = await ctx.Services.GetRequiredService<IContainerRuntimeResolver>().ResolveAsync(ctx.CancellationToken).ConfigureAwait(false); 174ctx.CancellationToken).ConfigureAwait(false); 177await runtime.ComposeDownAsync(composeContext, ctx.CancellationToken).ConfigureAwait(false); 181ctx.CancellationToken).ConfigureAwait(false); 187await deploymentStateManager.DeleteSectionAsync(stateSection, ctx.CancellationToken).ConfigureAwait(false); 281context.CancellationToken); 303var cancellationToken = context.CancellationToken; 437var runtime = await context.Services.GetRequiredService<IContainerRuntimeResolver>().ResolveAsync(context.CancellationToken).ConfigureAwait(false); 441context.CancellationToken).ConfigureAwait(false); 448await runtime.ComposeUpAsync(composeContext, context.CancellationToken).ConfigureAwait(false); 452var stateSection = await deploymentStateManager.AcquireSectionAsync($"DockerCompose:{Name}", context.CancellationToken).ConfigureAwait(false); 456await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 461context.CancellationToken).ConfigureAwait(false); 465await deployTask.CompleteAsync($"Compose deployment failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 483var runtime = await context.Services.GetRequiredService<IContainerRuntimeResolver>().ResolveAsync(context.CancellationToken).ConfigureAwait(false); 487context.CancellationToken).ConfigureAwait(false); 494await runtime.ComposeDownAsync(composeContext, context.CancellationToken).ConfigureAwait(false); 499context.CancellationToken).ConfigureAwait(false); 503await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 534context.CancellationToken).ConfigureAwait(false); 565defaultValue ??= await parameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 570defaultValue = await vp.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
DockerComposeServiceResource.cs (2)
338var runtime = await context.Services.GetRequiredService<IContainerRuntimeResolver>().ResolveAsync(context.CancellationToken).ConfigureAwait(false); 340var services = await runtime.ComposeListServicesAsync(composeContext, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
454stepContext.CancellationToken,
Aspire.Hosting.Foundry (11)
HostedAgent\AzureHostedAgentResource.cs (7)
108var imageName = await ((IValueProvider)Image).GetValueAsync(context.CancellationToken).ConfigureAwait(false); 117EnvironmentVariables = await GetResolvedEnvironmentVariablesAsync(context.ExecutionContext, this, context.Logger, context.CancellationToken).ConfigureAwait(false), 162var projectEndpoint = await project.Endpoint.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 174cancellationToken: context.CancellationToken 177await UpdateAgentEndpointProtocolsAsync(projectClient.AgentAdministrationClient, def, context.CancellationToken).ConfigureAwait(false); 250var foundryResourceId = await project.Parent.Id.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 277context.CancellationToken).ConfigureAwait(false);
PromptAgent\AzurePromptAgentResource.cs (2)
88var version = await DeployAsync(Project, stepCtx, logRetry: null, stepCtx.CancellationToken).ConfigureAwait(false); 306var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken, lifetime.ApplicationStopping);
Toolbox\FoundryToolboxResource.cs (2)
81stepContext.CancellationToken).ConfigureAwait(false); 307context.CancellationToken,
Aspire.Hosting.Kubernetes (63)
CertManagerExtensions.cs (4)
438var manifest = await BuildClusterIssuerManifestAsync(context.Model, certManager, issuer, context.Logger, context.CancellationToken) 451await File.WriteAllTextAsync(manifestPath, manifest, context.CancellationToken).ConfigureAwait(false); 476var result = await resultTask.WaitAsync(context.CancellationToken).ConfigureAwait(false); 541var result = await resultTask.WaitAsync(context.CancellationToken).ConfigureAwait(false);
Deployment\HelmDeploymentEngine.cs (23)
50var resolvedRelease = await releaseAnnotation.ReleaseName.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 74var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 141await HelmVersionValidator.EnsureMinimumVersionAsync(helmRunner, ctx.CancellationToken).ConfigureAwait(false); 200var stateSection = await deploymentStateManager.AcquireSectionAsync($"Helm:{environment.Name}", ctx.CancellationToken).ConfigureAwait(false); 209ctx.CancellationToken).ConfigureAwait(false); 223await deploymentStateManager.DeleteSectionAsync(stateSection, ctx.CancellationToken).ConfigureAwait(false); 256context.CancellationToken).ConfigureAwait(false); 266await ResolveAndWriteDeployValuesAsync(outputPath, environment, context.CancellationToken).ConfigureAwait(false); 271context.CancellationToken).ConfigureAwait(false); 278context.CancellationToken).ConfigureAwait(false); 425context.CancellationToken).ConfigureAwait(false); 473cancellationToken: context.CancellationToken).ConfigureAwait(false); 488var stateSection = await deploymentStateManager.AcquireSectionAsync($"Helm:{environment.Name}", context.CancellationToken).ConfigureAwait(false); 491await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 496context.CancellationToken).ConfigureAwait(false); 504context.CancellationToken).ConfigureAwait(false); 526var endpoints = await GetServiceEndpointsAsync(computeResource.Name.ToServiceName(), @namespace, environment.KubeConfigPath, context.Logger, context.CancellationToken).ConfigureAwait(false); 602context.CancellationToken).ConfigureAwait(false); 613context.CancellationToken).ConfigureAwait(false); 630cancellationToken: context.CancellationToken).ConfigureAwait(false); 641context.CancellationToken).ConfigureAwait(false); 649context.CancellationToken).ConfigureAwait(false); 693context.CancellationToken).ConfigureAwait(false);
KubernetesEnvironmentResource.cs (29)
417context.CancellationToken); 438var cancellationToken = context.CancellationToken; 520await ProcessIngressResources(appModel, deploymentTargets, logger, context.CancellationToken).ConfigureAwait(false); 523await ProcessGatewayResources(appModel, deploymentTargets, logger, context.CancellationToken).ConfigureAwait(false); 526await ProcessPersistentVolumeResources(appModel, context.CancellationToken).ConfigureAwait(false); 1438var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 1448var secretName = await ResolveExpressionAtDeployTimeAsync(secretNameExpr, context.CancellationToken).ConfigureAwait(false); 1521await File.WriteAllTextAsync(patchFilePath, patchJson, context.CancellationToken).ConfigureAwait(false); 1549var patchExitResult = await patchResult.WaitAsync(context.CancellationToken).ConfigureAwait(false); 1609var result = await checkResult.WaitAsync(context.CancellationToken).ConfigureAwait(false); 1634await File.WriteAllTextAsync(certPath, certPem, context.CancellationToken).ConfigureAwait(false); 1635await File.WriteAllTextAsync(keyPath, keyPem, context.CancellationToken).ConfigureAwait(false); 1654var createExitResult = await createResult.WaitAsync(context.CancellationToken).ConfigureAwait(false); 1753}, context.CancellationToken).ConfigureAwait(false); 1834var result = await getResult.WaitAsync(context.CancellationToken).ConfigureAwait(false); 1892var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 1922getExit = (await getResult.WaitAsync(context.CancellationToken).ConfigureAwait(false)).ExitCode; 1967await File.WriteAllTextAsync(patchFilePath, patchJson, context.CancellationToken).ConfigureAwait(false); 1986var patchExit = (await patchResult.WaitAsync(context.CancellationToken).ConfigureAwait(false)).ExitCode; 2097var exitResult = await getResult.WaitAsync(context.CancellationToken).ConfigureAwait(false); 2148await File.WriteAllTextAsync(manifestPath, minimal.ToJsonString(), context.CancellationToken).ConfigureAwait(false); 2167var applyExitResult = await applyResult.WaitAsync(context.CancellationToken).ConfigureAwait(false); 2196var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 2226var secretName = await ResolveExpressionAtDeployTimeAsync(secretNameExpr, context.CancellationToken).ConfigureAwait(false); 2227var hostname = await ResolveExpressionAtDeployTimeAsync(hostnameExpr, context.CancellationToken).ConfigureAwait(false); 2246var result = await checkResult.WaitAsync(context.CancellationToken).ConfigureAwait(false); 2271await File.WriteAllTextAsync(certPath, certPem, context.CancellationToken).ConfigureAwait(false); 2272await File.WriteAllTextAsync(keyPath, keyPem, context.CancellationToken).ConfigureAwait(false); 2291var createExitResult = await createResult.WaitAsync(context.CancellationToken).ConfigureAwait(false);
KubernetesHelmChartExtensions.cs (7)
350cancellationToken: context.CancellationToken).ConfigureAwait(false); 368.AcquireSectionAsync(GetStateSectionName(environment, chart), context.CancellationToken) 372await deploymentStateManager.SaveSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false); 400.AcquireSectionAsync(GetStateSectionName(environment, chart), context.CancellationToken) 414context.CancellationToken).ConfigureAwait(false); 444cancellationToken: context.CancellationToken).ConfigureAwait(false); 456await deploymentStateManager.DeleteSectionAsync(stateSection, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Radius (5)
Publishing\RadCredentialRegisterStep.cs (1)
64var cancellationToken = context.CancellationToken;
Publishing\RadiusBicepPublishingContext.cs (1)
50var cancellationToken = context.CancellationToken;
Publishing\RadiusDeploymentPipelineStep.cs (1)
507var cancellationToken = context.CancellationToken;
Publishing\SealedSecretApplyStep.cs (1)
64var cancellationToken = context.CancellationToken;
RadiusEnvironmentResource.cs (1)
85Action = stepContext => RadiusDeploymentPipelineStep.VerifyControlPlaneVersionAsync(stepContext.Logger, stepContext.CancellationToken),
Aspire.Hosting.Tests (1)
Pipelines\DistributedApplicationPipelineTests.cs (1)
824wasCancelled = context.CancellationToken.IsCancellationRequested;
Aspire.Hosting.TestUtilities (3)
Helpers\JsonDocumentManifestPublisher.cs (3)
82var publishingContext = new ManifestPublishingContext(executionContext, manifestPath, writer, context.CancellationToken); 84await publishingContext.WriteModel(context.Model, context.CancellationToken).ConfigureAwait(false); 87manifestStore.ManifestDocument = await JsonDocument.ParseAsync(stream, cancellationToken: context.CancellationToken).ConfigureAwait(false);
Pipelines.AppHost (28)
AppHost.cs (28)
64.CreateTaskAsync($"Granting file share access to current user", context.CancellationToken) 87context.CancellationToken).ConfigureAwait(false); 91var userObjectId = await getUserProcess.StandardOutput.ReadToEndAsync(context.CancellationToken).ConfigureAwait(false); 94await getUserProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 98var error = await getUserProcess.StandardError.ReadToEndAsync(context.CancellationToken).ConfigureAwait(false); 102context.CancellationToken).ConfigureAwait(false); 122context.CancellationToken).ConfigureAwait(false); 126var subscriptionId = await getSubscriptionProcess.StandardOutput.ReadToEndAsync(context.CancellationToken).ConfigureAwait(false); 129await getSubscriptionProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 133var error = await getSubscriptionProcess.StandardError.ReadToEndAsync(context.CancellationToken).ConfigureAwait(false); 137context.CancellationToken).ConfigureAwait(false); 157context.CancellationToken).ConfigureAwait(false); 161var resourceGroup = await getResourceGroupProcess.StandardOutput.ReadToEndAsync(context.CancellationToken).ConfigureAwait(false); 164await getResourceGroupProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 168var error = await getResourceGroupProcess.StandardError.ReadToEndAsync(context.CancellationToken).ConfigureAwait(false); 172context.CancellationToken).ConfigureAwait(false); 195context.CancellationToken).ConfigureAwait(false); 199await assignRoleProcess.WaitForExitAsync(context.CancellationToken).ConfigureAwait(false); 203var error = await assignRoleProcess.StandardError.ReadToEndAsync(context.CancellationToken).ConfigureAwait(false); 207context.CancellationToken).ConfigureAwait(false); 214context.CancellationToken).ConfigureAwait(false); 221context.CancellationToken).ConfigureAwait(false); 263.CreateTaskAsync($"Uploading {Path.GetFileName(sourcePath)} to {fileShareName}", deployingContext.CancellationToken) 273deployingContext.CancellationToken).ConfigureAwait(false); 303await directoryClient.CreateIfNotExistsAsync(cancellationToken: deployingContext.CancellationToken).ConfigureAwait(false); 311await fileClient.CreateAsync(fileStream.Length, cancellationToken: deployingContext.CancellationToken).ConfigureAwait(false); 312await fileClient.UploadAsync(fileStream, cancellationToken: deployingContext.CancellationToken).ConfigureAwait(false); 318deployingContext.CancellationToken).ConfigureAwait(false);
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
44context.CancellationToken).ConfigureAwait(false);
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
125cancellationToken: context.CancellationToken); 162cancellationToken: context.CancellationToken); 177cancellationToken: context.CancellationToken); 198cancellationToken: context.CancellationToken); 212cancellationToken: context.CancellationToken); 227cancellationToken: context.CancellationToken); 247cancellationToken: context.CancellationToken);
SimplePipelines.AppHost (9)
AppHost.cs (9)
9.CreateTaskAsync("Running hello-world step", context.CancellationToken) 14await Task.Delay(500, context.CancellationToken).ConfigureAwait(false); 19context.CancellationToken).ConfigureAwait(false); 27.CreateTaskAsync("Running custom deploy prerequisite", context.CancellationToken) 32await Task.Delay(500, context.CancellationToken).ConfigureAwait(false); 37context.CancellationToken).ConfigureAwait(false); 45.CreateTaskAsync("Running custom publish prerequisite", context.CancellationToken) 50await Task.Delay(500, context.CancellationToken).ConfigureAwait(false); 55context.CancellationToken).ConfigureAwait(false);