MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​ImplementationBackground­Task­Scheduler
Open sandboxFocus

BackgroundTaskScheduler Class

Inheritance
System.Object
BackgroundTaskScheduler
Implements
System.IDisposable
System.IAsyncDisposable
Namespace: Metalama.Patterns.Caching.Implementation
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public sealed class BackgroundTaskScheduler : Object

Constructors

Name Description
BackgroundTaskScheduler(IServiceProvider, Boolean)

Properties

Name Description
AllBackgroundTaskExceptions
BackgroundTaskExceptions

Methods

Name Description
Dispose()
Dispose(CancellationToken)
DisposeAsync(CancellationToken)
EnqueueBackgroundTask(Func<CancellationToken, Task>)

Enqueues a background task.

EnqueueBackgroundTask(Func<CancellationToken, ValueTask>)
StopAcceptingBackgroundTasks()

Forbids the use of the EnqueueBackgroundTask(Func<CancellationToken, ValueTask>) method. This method is used for debugging purposes only.

WhenBackgroundTasksCompleted(CancellationToken)

Returns a System.Threading.Tasks.Task that completes when all enqueued background tasks complete.