Microsoft.VisualStudio.Project.IdeBuildLogger.BeginInvokeWithErrorMessage C# (CSharp) Method

BeginInvokeWithErrorMessage() protected static method

Call Dispatcher.BeginInvoke, showing an error message if there was a non-critical exception.
protected static BeginInvokeWithErrorMessage ( IServiceProvider serviceProvider, Dispatcher dispatcher, System.Action action ) : void
serviceProvider IServiceProvider service provider
dispatcher System.Windows.Threading.Dispatcher dispatcher
action System.Action action to invoke
return void
        protected static void BeginInvokeWithErrorMessage(IServiceProvider serviceProvider, Dispatcher dispatcher, Action action)
        {
            dispatcher.BeginInvoke(new Action(() => CallWithErrorMessage(serviceProvider, action)));
        }