SonarLint.VisualStudio.Progress.Controller.ErrorNotification.ErrorNotificationManager.AddNotifier C# (CSharp) Method

AddNotifier() public method

IErrorNotificationManager.AddNotifier
public AddNotifier ( IProgressErrorNotifier notifier ) : void
notifier IProgressErrorNotifier A unique instance of
return void
        public void AddNotifier(IProgressErrorNotifier notifier)
        {
            if (notifier == null)
            {
                throw new ArgumentNullException(nameof(notifier));
            }

            lock (this.notifiersLock)
            {
                this.notifiers.Add(notifier);
            }
        }