public StatsDPerformanceCounter(StatsDConfiguration cfg, string category, string name, string instance)
 {
     _fullName = $"{category}.{name}.{instance}";
     var increment = $"{_fullName}:1|c";
     _incrementPayload = Encoding.UTF8.GetBytes(increment);
     _client = new UdpClient(cfg.Hostname, cfg.Port);
 }
예제 #2
0
        public StatsDPerformanceCounter(StatsDConfiguration cfg, string category, string name, string instance)
        {
            _fullName = $"{category}.{name}.{instance}";
            var increment = $"{_fullName}:1|c";

            _incrementPayload = Encoding.UTF8.GetBytes(increment);
            _client           = new UdpClient(cfg.Hostname, cfg.Port);
        }