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