Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public SubMetric(SubSelectorDelegate <TSub, TBase> selector, BoolSelectorDelegate <TBase, TSub> filter, params IMetric <TSub>[] metrics)
     : this(selector, filter, new MetricsTemplate <TSub>(metrics))
 {
 }
Esempio n. 3
0
 public SubMetric(SubSelectorDelegate <TSub, TBase> selector, params IMetric <TSub>[] metrics)
     : this(selector, (data, sub) => true, new MetricsTemplate <TSub>(metrics))
 {
 }