Esempio n. 1
0
        public Recorder(
            Metric.Client.StatsdPipe pipe,
            string keyPrefix = null,
            string keySuffix = null)
        {
            this.c_pipe = pipe;
            this.c_keyPrefix = keyPrefix;
            this.c_keySuffix = keySuffix;

            if (!string.IsNullOrWhiteSpace(this.c_keyPrefix))	{ this.c_keyPrefix += "."; }
            if (!string.IsNullOrWhiteSpace(this.c_keySuffix))	{ this.c_keySuffix = "." + this.c_keySuffix; }
        }
Esempio n. 2
0
        public Recorder(
            Metric.Client.StatsdPipe pipe,
            string keyPrefix = null,
            string keySuffix = null)
        {
            this.c_pipe      = pipe;
            this.c_keyPrefix = keyPrefix;
            this.c_keySuffix = keySuffix;

            if (!string.IsNullOrWhiteSpace(this.c_keyPrefix))
            {
                this.c_keyPrefix += ".";
            }
            if (!string.IsNullOrWhiteSpace(this.c_keySuffix))
            {
                this.c_keySuffix = "." + this.c_keySuffix;
            }
        }