1 write to CancellationToken
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
122CancellationToken = cancellationToken
18 references to CancellationToken
Aspire.Hosting (7)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
27await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 60await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 93await orchestrator.StopResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false); 94await orchestrator.StartResourceAsync(context.ResourceName, context.CancellationToken).ConfigureAwait(false);
ResourceBuilderExtensions.cs (3)
1827CancellationToken = context.CancellationToken, 1835var response = await httpClient.SendAsync(request, context.CancellationToken).ConfigureAwait(false); 1843CancellationToken = context.CancellationToken,
Stress.AppHost (11)
InteractionCommands.cs (9)
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); 86cancellationToken: commandContext.CancellationToken); 154cancellationToken: commandContext.CancellationToken); 181cancellationToken: commandContext.CancellationToken); 189cancellationToken: commandContext.CancellationToken); 197cancellationToken: commandContext.CancellationToken); 207cancellationToken: commandContext.CancellationToken); 229cancellationToken: commandContext.CancellationToken);
Program.cs (2)
107await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-stop", c.CancellationToken); 116await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-start", c.CancellationToken);