Open sandboxFocus

Class BackgroundTaskScheduler

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

Constructors

Name Description
BackgroundTaskScheduler(IServiceProvider?, bool)

Properties

Name Description
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 Task that completes when all enqueued background tasks complete.

Extension Methods