1 write to CancellationToken
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
158CancellationToken = cancellationToken
33 references to CancellationToken
Aspire.Hosting (16)
ApplicationModel\CommandsConfigurationExtensions.cs (11)
29await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 62await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 101await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 102await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 216await Task.WhenAll(replicasToStop.Select(name => orchestrator.StopResourceAsync(name, context.CancellationToken))).ConfigureAwait(false); 228using var logCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken); 236await orchestrator.StartResourceAsync(rebuilderInstanceName, context.CancellationToken).ConfigureAwait(false); 240using var buildTimeoutCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken); 255catch (OperationCanceledException) when (!context.CancellationToken.IsCancellationRequested) 298await orchestrator.StartResourceAsync(name, context.CancellationToken).ConfigureAwait(false); 331catch (OperationCanceledException) when (context.CancellationToken.IsCancellationRequested)
Orchestrator\ParameterProcessor.cs (2)
202await SetParameterAsync(parameterResource, context.CancellationToken).ConfigureAwait(false); 218await DeleteParameterAsync(parameterResource, context.CancellationToken).ConfigureAwait(false);
ResourceBuilderExtensions.cs (3)
2478CancellationToken = context.CancellationToken, 2486var response = await httpClient.SendAsync(request, context.CancellationToken).ConfigureAwait(false); 2494CancellationToken = context.CancellationToken,
Aspire.Hosting.Azure.Kusto (3)
AzureKustoBuilderExtensions.cs (3)
367.GetValueAsync(context.CancellationToken) 382.GetValueAsync(context.CancellationToken) 406context.CancellationToken).ConfigureAwait(false);
Stress.AppHost (14)
InteractionCommands.cs (12)
19var resultTask1 = interactionService.PromptConfirmationAsync("Command confirmation", "Are you sure?", cancellationToken: commandContext.CancellationToken); 20var resultTask2 = interactionService.PromptMessageBoxAsync("Command confirmation", "Are you really sure?", new MessageBoxInteractionOptions { Intent = MessageIntent.Warning, ShowSecondaryButton = true }, cancellationToken: commandContext.CancellationToken); 124cancellationToken: commandContext.CancellationToken); 174cancellationToken: commandContext.CancellationToken); 260cancellationToken: commandContext.CancellationToken); 399cancellationToken: commandContext.CancellationToken); 498cancellationToken: commandContext.CancellationToken); 525cancellationToken: commandContext.CancellationToken); 533cancellationToken: commandContext.CancellationToken); 541cancellationToken: commandContext.CancellationToken); 551cancellationToken: commandContext.CancellationToken); 574cancellationToken: commandContext.CancellationToken);
Program.cs (2)
115await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, KnownResourceCommands.StopCommand, c.CancellationToken); 124await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, KnownResourceCommands.StartCommand, c.CancellationToken);