1 write to CancellationToken
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
135CancellationToken = cancellationToken
21 references to CancellationToken
Aspire.Hosting (7)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
26await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 59await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 92await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 93await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false);
ResourceBuilderExtensions.cs (3)
2190CancellationToken = context.CancellationToken, 2198var response = await httpClient.SendAsync(request, context.CancellationToken).ConfigureAwait(false); 2206CancellationToken = context.CancellationToken,
Stress.AppHost (14)
InteractionCommands.cs (12)
18var resultTask1 = interactionService.PromptConfirmationAsync("Command confirmation", "Are you sure?", cancellationToken: commandContext.CancellationToken); 19var resultTask2 = interactionService.PromptMessageBoxAsync("Command confirmation", "Are you really sure?", new MessageBoxInteractionOptions { Intent = MessageIntent.Warning, ShowSecondaryButton = true }, cancellationToken: commandContext.CancellationToken); 123cancellationToken: commandContext.CancellationToken); 173cancellationToken: commandContext.CancellationToken); 259cancellationToken: commandContext.CancellationToken); 398cancellationToken: commandContext.CancellationToken); 497cancellationToken: commandContext.CancellationToken); 524cancellationToken: commandContext.CancellationToken); 532cancellationToken: commandContext.CancellationToken); 540cancellationToken: commandContext.CancellationToken); 550cancellationToken: commandContext.CancellationToken); 573cancellationToken: commandContext.CancellationToken);
Program.cs (2)
113await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-stop", c.CancellationToken); 122await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-start", c.CancellationToken);