Ejemplo n.º 1
0
        public VeStatsDClient(IStatsdConfig config) : this(new Statsd(config.Host, config.Port, config.AppName), config.Datacenter, config.CustomTags)
        {
            if (string.IsNullOrEmpty(config.Datacenter))
            {
                throw new ArgumentNullException("datacenter", "statsd datacenter cannot be empty");
            }

            if (string.IsNullOrEmpty(config.AppName))
            {
                throw new ArgumentNullException("appName", "statsd appName cannot be empty");
            }
        }
 public StatsDActionFilter(IStatsdConfig config)
 {
     _statsd = new VeStatsDClient(config);
 }
 public StatsDActionFilter(IStatsdConfig config)
 {
     _statsd = new VeStatsDClient(config);
 }