BackgroundTaskScheduler.StopAcceptingBackgroundTasks Method
StopAcceptingBackgroundTasks()
Forbids the use of the EnqueueBackgroundTask(Func<CancellationToken, ValueTask>) method. This method is used for debugging purposes only.
Declaration
public void StopAcceptingBackgroundTasks()