private void OnContextDisposed(BackgroundWorkIndicatorContext context) { _threadingContext.ThrowIfNotOnUIThread(); if (_currentContext == context) { _currentContext = null; } }
public BackgroundWorkIndicatorScope( BackgroundWorkIndicatorContext indicator, string description) { _context = indicator; _description = description; }