public HandlerFilter( IHandler handler, HandlerFilterDelegate filter, bool reentrant) : base(handler) { if (filter == null) { throw new ArgumentNullException(nameof(filter)); } _filter = filter; _reentrant = reentrant; }
public static HandlerFilter Filter( this IHandler handler, HandlerFilterDelegate filter) { return(Filter(handler, filter, false)); }
public HandlerFilter( IHandler handler, HandlerFilterDelegate filter ) : this(handler, filter, false) { }
public static HandlerFilter Filter( this IHandler handler, HandlerFilterDelegate filter, bool reentrant) { return(handler == null ? null : new HandlerFilter(handler, filter, reentrant)); }