Example #1
0
        public HandlerFilter(
            IHandler handler, HandlerFilterDelegate filter,
            bool reentrant) : base(handler)
        {
            if (filter == null)
            {
                throw new ArgumentNullException(nameof(filter));
            }

            _filter    = filter;
            _reentrant = reentrant;
        }
Example #2
0
 public static HandlerFilter Filter(
     this IHandler handler, HandlerFilterDelegate filter)
 {
     return(Filter(handler, filter, false));
 }
Example #3
0
 public HandlerFilter(
     IHandler handler, HandlerFilterDelegate filter
     ) : this(handler, filter, false)
 {
 }
Example #4
0
 public static HandlerFilter Filter(
     this IHandler handler, HandlerFilterDelegate filter, bool reentrant)
 {
     return(handler == null ? null
          : new HandlerFilter(handler, filter, reentrant));
 }