1 write to CancellationToken
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
109CancellationToken = cancellationToken
14 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)
1822CancellationToken = context.CancellationToken, 1830var response = await httpClient.SendAsync(request, context.CancellationToken).ConfigureAwait(false); 1838CancellationToken = context.CancellationToken,
Stress.AppHost (7)
InteractionCommands.cs (5)
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); 83cancellationToken: commandContext.CancellationToken); 151cancellationToken: commandContext.CancellationToken); 185cancellationToken: commandContext.CancellationToken);
Program.cs (2)
105await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-stop", c.CancellationToken); 114await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-start", c.CancellationToken);