Watch Aspire live streamsDocsTry Aspire

TerminalContext Properties

ClassProperties1 member
Provides cancellation to the work callback of a terminal interaction.
CancellationTokenSection titled CancellationTokenCancellationToken
Gets the token signaled when the user requests cancellation or the interaction is externally canceled.
public CancellationToken CancellationToken { get; init; }
Observe this token in automation calls and other asynchronous work. Cancellation does not stop the terminal; its caller remains responsible for disposing it when no longer needed.