Example #1
0
            private void raiseValidationEntityEvent(Action <ValidationEntityEventArg> @event, ISubject <ValidationEntityEventArg> @subject, ValidationException ex = null)
            {
                if (!this.areChangeNotificationsEnabled())
                {
                    return;
                }

                var args = new ValidationEntityEventArg(new ValidationEntityError(sender, ex));

                @event(args);
                this.notifyObservable(args, subject);
            }
Example #2
0
 public ValidationEntityException(IReactiveDbObject sender, ValidationEntityEventArg args)
 {
     this.Errors = args;
     this.Sender = sender;
 }