public IDisposable AddNotifiers(params Action<IFile>[] entries) { var cookie = new DisposableCookie(this, entries); lock (_actions) { _actions.AddRange(entries.Where(x => x != null)); _refCounter++; if (_refCounter == 1) Activate(); } return cookie; }
public IDisposable AddNotifiers(params Action <IFile>[] entries) { var cookie = new DisposableCookie(this, entries); lock (_actions) { _actions.AddRange(entries.Where(x => x != null)); _refCounter++; if (_refCounter == 1) { Activate(); } } return(cookie); }