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

BeginInvokeWithErrorMessage() private static method

Call Dispatcher.BeginInvoke, showing an error message if there was a non-critical exception.
private 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
        private static void BeginInvokeWithErrorMessage(IServiceProvider serviceProvider, Dispatcher dispatcher, Action action)
        {
            dispatcher.BeginInvoke(new Action(() => CallWithErrorMessage(serviceProvider, action)));
        }