public StartBackgroundTasks( IContainer container, BackgroundTasksContext backgroundTasksContext) { _container = container; _backgroundTasksContext = backgroundTasksContext; }
public TimerUsageScope(BackgroundTasksContext backgroundTasksContext) { _backgroundTasksContext = backgroundTasksContext; _backgroundTasksContext.Semaphore.WaitOne(); }