private void OnControllerDisconnected(object sender, EventArgs e) { if (this.disposed || this.disposing) { return; } ControllerError?.Invoke(sender, string.Format(CultureInfo.InvariantCulture, "Controller disconnected {0}", sender.GetType().Name)); }
private void OnControllerError(object sender, ControllerErrorEventArgs e) { if (this.disposed || this.disposing) { return; } ControllerError?.Invoke(sender, e.Message); }
private void updateError(string message) { ControllerError s = _errors[message]; if (s != null) { s.occurences++; _errors[message] = s; } }
public ActionResult Index(TenantDTO tenantDTO) { try { AppServiceFactory.TenantAppService.Add(tenantDTO); } catch (Exception ex) { ControllerError.Processing(this, ex, false); } return(RedirectToAction("index")); }
public ControllerException(ControllerError error, string message) : base(message) { Error = error; }
public ControllerException(ControllerError error) { Error = error; }