MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​ImplementationBackground­Task­SchedulerStop­Accepting­Background­Tasks
Open sandboxFocus

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()