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

VsOutputWindowPaneNotifier() public method

Constructor for VsOutputWindowPaneNotifier
public VsOutputWindowPaneNotifier ( IServiceProvider serviceProvider, IVsOutputWindowPane pane, bool ensureOutputVisible, string messageFormat, bool logFullException ) : SonarLint.VisualStudio.Progress.Threading
serviceProvider IServiceProvider instance. Required.
pane IVsOutputWindowPane The to use
ensureOutputVisible bool Whether to shown and activate the output window
messageFormat string Required. Expected to have only one placeholder
logFullException bool Whether to shown the exception message or the whole exception
return SonarLint.VisualStudio.Progress.Threading
        public VsOutputWindowPaneNotifier(IServiceProvider serviceProvider, IVsOutputWindowPane pane, bool ensureOutputVisible, string messageFormat, bool logFullException)
        {
            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (pane == null)
            {
                throw new ArgumentNullException(nameof(pane));
            }

            if (string.IsNullOrWhiteSpace(messageFormat))
            {
                throw new ArgumentNullException(nameof(messageFormat));
            }

            this.serviceProvider = serviceProvider;
            this.pane = pane;
            this.ensureOutputVisible = ensureOutputVisible;
            this.messageFormat = messageFormat;
            this.logFullException = logFullException;
        }