コード例 #1
0
        public void Capture(string key, Func <object> selector)
        {
            CorrelationState current = CorrelationState.Current;

            if (current == null)
            {
                return;
            }
            string        key1      = key;
            Func <object> selector1 = selector;

            current.AddCustomData(key1, selector1);
        }
コード例 #2
0
        public void AddTag(string tag, string value)
        {
            CorrelationState current = CorrelationState.Current;

            if (current == null)
            {
                return;
            }
            string tag1 = tag;
            string str  = value;

            current.AddTag(tag1, str);
        }
コード例 #3
0
        public void Capture(string key, object value)
        {
            CorrelationState current = CorrelationState.Current;

            if (current == null)
            {
                return;
            }
            string key1 = key;
            object obj  = value;

            current.AddCustomData(key1, obj);
        }