// Thread the status bar updates to prevent the main application thread from locking waiting to update the status bar. public void AddMessage(string msg) { try { Logger.log(msg, null, Logger.LogType.STATUS); ExcelExecutionHelper.ExecuteWithAutoRetry(() => _hostService.SetStatusBar(msg)); } catch (System.Exception e) { Logger.log(e, null, Logger.LogType.NOSENTRY); } }