Beispiel #1
0
        internal void Handle(IValidationHandler handler, Action <IEnumerable <ValidationResult> > filterFunc = null)
        {
            handler.CheckNull(nameof(handler));
            var coll = filterFunc == null ? _collection : _collection.Filter(filterFunc);

            if (coll == null)
            {
                return;
            }

            handler.Handle(coll);
        }
        internal void Handle(IValidationHandler handler, Action <IEnumerable <ValidationResult> > filterFunc = null)
        {
            if (handler == null)
            {
                throw new ArgumentNullException(nameof(handler));
            }
            var coll = filterFunc == null ? _collection : _collection.Filter(filterFunc);

            if (coll == null)
            {
                return;
            }

            handler.Handle(coll);
        }