private void RunExceptionDelegate(Exception ex) { if (this.OnException != null) { this.ActionDispatcher.Dispatch(() => this.OnException(ex)); } }