Exemplo n.º 1
0
        public virtual void LogMetric(String name, String status, String nameValuePairs)
        {
            string  type   = "";
            IMetric metric = NewMetric(type, name, nameValuePairs);

            metric.Status = status;
            metric.Complete();
        }
Exemplo n.º 2
0
        public virtual void LogMetric(string name, string status, string nameValuePairs)
        {
            string  type   = string.Empty;
            IMetric metric = NewMetric(type, name);

            if (!string.IsNullOrWhiteSpace(nameValuePairs))
            {
                metric.AddData(nameValuePairs);
            }

            metric.Status = status;
            metric.Complete();
        }
        public virtual void LogMetric(String name, String status, String nameValuePairs, string messageTreeId)
        {
            String  type   = string.Empty;
            IMetric metric = NewMetric(type, name, messageTreeId);

            if (!string.IsNullOrWhiteSpace(nameValuePairs))
            {
                metric.AddData(nameValuePairs);
            }

            metric.Status = status;
            metric.Complete(CallContextManager.MessageTreeId);
        }