Example #1
0
 internal object this[RequestMonitorMetadata key]
 {
     get
     {
         return(this.fields[(int)key]);
     }
     set
     {
         this.fields[(int)key] = value;
     }
 }
Example #2
0
        // Token: 0x0600009B RID: 155 RVA: 0x00004BE0 File Offset: 0x00002DE0
        internal void Log(Guid requestId, RequestMonitorMetadata key, object value)
        {
            ExTraceGlobals.InstrumentationTracer.TraceFunction((long)this.GetHashCode(), "[RequestMonitor::Log] Enter.");
            if (!RequestMonitor.Enabled.Value)
            {
                ExTraceGlobals.InstrumentationTracer.TraceDebug((long)this.GetHashCode(), "[RequestMonitor::Log] Exit. RequestMonitorEnabled=false");
                return;
            }
            RequestMonitorContext requestMonitorContext;

            if (this.TryGetCurrentRequestMonitorContext(requestId, out requestMonitorContext))
            {
                ExTraceGlobals.InstrumentationTracer.TraceDebug <RequestMonitorMetadata, object>((long)this.GetHashCode(), "[RequestMonitor::Log] Key={0}, Value={1}.", key, value);
                requestMonitorContext[key] = value;
            }
            ExTraceGlobals.InstrumentationTracer.TraceFunction((long)this.GetHashCode(), "[RequestMonitor::Log] Exit.");
        }