public SubMetric(SubSelectorDelegate <TSub, TBase> selector, BoolSelectorDelegate <TBase, TSub> filter, MetricsTemplate <TSub> template) { _selector = selector ?? throw new ArgumentNullException(nameof(selector)); _filter = filter ?? throw new ArgumentNullException(nameof(filter)); _template = template ?? throw new ArgumentNullException(nameof(template)); _metric = _template.Create(); }
public SubMetric(SubSelectorDelegate <TSub, TBase> selector, BoolSelectorDelegate <TBase, TSub> filter, params IMetric <TSub>[] metrics) : this(selector, filter, new MetricsTemplate <TSub>(metrics)) { }
public SubMetric(SubSelectorDelegate <TSub, TBase> selector, params IMetric <TSub>[] metrics) : this(selector, (data, sub) => true, new MetricsTemplate <TSub>(metrics)) { }