示例#1
0
 public RangeFilterer(IRangeCreator <TRange> creator, IRangeFilteringPolicy <TRange> policy, IRangeAccessor <TRange> accessor)
 {
     _creator     = creator;
     _policy      = policy;
     _accessor    = accessor;
     _intersector = _policy.AreZeroLengthRangesAllowed ? (Func <TimeRange, TimeRange, bool>)RangeTouchesRange : RangeIntersectsRange;
 }
示例#2
0
 public RangeJoiner(IRangeCreator <TRange> creator, IRangeAccessor <TRange> accessor, ILogger <RangeJoiner <TRange> > logger)
 {
     _creator  = creator;
     _accessor = accessor;
     _logger   = logger;
 }
示例#3
0
 public RangeMerger(IRangeFilterer <TRange> filterer, IRangeJoiner <TRange> joiner, IRangeAccessor <TRange> accessor)
 {
     _filterer = filterer;
     _joiner   = joiner;
     _accessor = accessor;
 }