コード例 #1
0
        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));
        }
コード例 #2
0
        private void OnControllerError(object sender, ControllerErrorEventArgs e)
        {
            if (this.disposed || this.disposing)
            {
                return;
            }

            ControllerError?.Invoke(sender, e.Message);
        }
コード例 #3
0
        private void updateError(string message)
        {
            ControllerError s = _errors[message];

            if (s != null)
            {
                s.occurences++;
                _errors[message] = s;
            }
        }
コード例 #4
0
        public ActionResult Index(TenantDTO tenantDTO)
        {
            try
            {
                AppServiceFactory.TenantAppService.Add(tenantDTO);
            }
            catch (Exception ex)
            {
                ControllerError.Processing(this, ex, false);
            }

            return(RedirectToAction("index"));
        }
コード例 #5
0
 public ControllerException(ControllerError error, string message) :
     base(message)
 {
     Error = error;
 }
コード例 #6
0
 public ControllerException(ControllerError error)
 {
     Error = error;
 }