1 write to CancellationToken
Aspire.Hosting (1)
ApplicationModel\ResourceCommandService.cs (1)
109
CancellationToken
= cancellationToken
14 references to CancellationToken
Aspire.Hosting (7)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
26
await orchestrator.StartResourceAsync(context.ResourceName, context.
CancellationToken
).ConfigureAwait(false);
59
await orchestrator.StopResourceAsync(context.ResourceName, context.
CancellationToken
).ConfigureAwait(false);
92
await orchestrator.StopResourceAsync(context.ResourceName, context.
CancellationToken
).ConfigureAwait(false);
93
await orchestrator.StartResourceAsync(context.ResourceName, context.
CancellationToken
).ConfigureAwait(false);
ResourceBuilderExtensions.cs (3)
1822
CancellationToken = context.
CancellationToken
,
1830
var response = await httpClient.SendAsync(request, context.
CancellationToken
).ConfigureAwait(false);
1838
CancellationToken = context.
CancellationToken
,
Stress.AppHost (7)
InteractionCommands.cs (5)
18
var resultTask1 = interactionService.PromptConfirmationAsync("Command confirmation", "Are you sure?", cancellationToken: commandContext.
CancellationToken
);
19
var resultTask2 = interactionService.PromptMessageBoxAsync("Command confirmation", "Are you really sure?", new MessageBoxInteractionOptions { Intent = MessageIntent.Warning, ShowSecondaryButton = true }, cancellationToken: commandContext.
CancellationToken
);
83
cancellationToken: commandContext.
CancellationToken
);
151
cancellationToken: commandContext.
CancellationToken
);
185
cancellationToken: commandContext.
CancellationToken
);
Program.cs (2)
105
await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-stop", c.
CancellationToken
);
114
await ExecuteCommandForAllResourcesAsync(c.ServiceProvider, "resource-start", c.
CancellationToken
);