23 references to CancellationToken
Aspire.Hosting (5)
ApplicationModel\EnvironmentCallbackContext.cs (2)
14/// <param name="cancellationToken">A <see cref="CancellationToken"/>.</param> 26/// <param name="cancellationToken">A <see cref="CancellationToken"/>.</param>
Dashboard\DashboardEventHandlers.cs (1)
451var resourceServiceUrl = await dashboardEndpointProvider.GetResourceServiceUriAsync(context.CancellationToken).ConfigureAwait(false);
ResourceBuilderExtensions.cs (2)
460var url = await externalService.Resource.UrlParameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 1656else if (ExternalServiceResource.UrlIsValidForExternalService(await externalService.Resource.UrlParameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false), out var uri, out var message))
Aspire.Hosting.Blazor (4)
BlazorGatewayExtensions.cs (4)
429var manifests = await BuildAndDiscoverManifestsAsync(registeredApps, context.Logger, context.CancellationToken).ConfigureAwait(false); 441await EndpointsManifestTransformer.MergeRuntimeManifestsAsync(manifests, mergedRuntimePath, context.Logger, context.CancellationToken).ConfigureAwait(false); 605srcEndpoints, reg.PathPrefix, context.CancellationToken).ConfigureAwait(false); 607await File.WriteAllTextAsync(destEndpoints, modifiedEndpoints, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Blazor.Tests (1)
AddBlazorGatewayTests.cs (1)
301.BuildAsync(publishBuilder.ExecutionContext, cancellationToken: context.CancellationToken);
Aspire.Hosting.Dotnet (2)
DotnetProjectBuildCoordinator.cs (2)
1268context.CancellationToken).ConfigureAwait(false); 1280context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Dotnet.Tests (6)
DotnetProjectBuildCoordinatorTests.cs (6)
2614await releaseRefreshedEvaluation.Task.WaitAsync(context.CancellationToken); 2744await releaseFirstEvaluation.Task.WaitAsync(context.CancellationToken); 2821await releaseCallback.Task.WaitAsync(context.CancellationToken); 2876await Task.Delay(Timeout.InfiniteTimeSpan, context.CancellationToken); 2878catch (OperationCanceledException) when (context.CancellationToken.IsCancellationRequested) 2939await Task.Delay(Timeout.InfiniteTimeSpan, context.CancellationToken);
Aspire.Hosting.Go (4)
GoRunDebugging.cs (4)
34context.ExecutionContext, context.Logger, original, "GOFLAGS", context.CancellationToken).ConfigureAwait(false))?.Value; 109context.ExecutionContext, context.Logger, value, name, context.CancellationToken).ConfigureAwait(false); 138var result = await resultTask.WaitAsync(context.CancellationToken).ConfigureAwait(false); 150catch (Exception exception) when (!context.CancellationToken.IsCancellationRequested &&
Aspire.Hosting.Tests (1)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
1012context.CancellationToken.ThrowIfCancellationRequested();