private void addException(Exception ex) { DispatcherHelper.DispatchAction(() => { AppExceptionsGuiData.AppExceptionsList.Add(new AppException { Message = ex.Message, Details = ExceptionLogger.GetExceptionCallStack(ex) }); PluginContext.NotifyPluginsHost(NotificationType.Update, 1); }); }