Exemplo n.º 1
0
        public static IMeter Meter(string name, string instance, Interval interval)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException(nameof(name));
            }
            if (String.IsNullOrEmpty(instance))
            {
                throw new ArgumentNullException(nameof(instance));
            }

            var parent = New(name, null, () => Factory.Meter(name, interval));

            return(New(name, instance, () => Factory.Meter(parent, instance, interval)));
        }
Exemplo n.º 2
0
        public static IMeter Meter(string name, string instance, Interval interval)
        {
            var parent = (IMeter)New(name, null, () => Factory.Meter(name, interval));

            return((IMeter)New(name, instance, () => Factory.Meter(parent, instance, interval)));
        }