Offer CancellationToken
support in IProgram
(.NET 7)
#86
Labels
area: samples
Issues related to the sample projects.
type: feature
Issues that are classified as feature requests.
Milestone
Depends on:
net7.0
target framework (.NET 7) #103Something like:
If
SupportsCancellation
istrue
,ProgramHost
will wire up aSignaled
event handler to trigger aCancellationTokenSource
whoseCancellationToken
gets passed as a property onProgramContext
.(The reason for making cancellation support optional is that wiring up
Signaled
has side effects that may not be tolerable - see #64.)The text was updated successfully, but these errors were encountered: