예제 #1
0
 private void AddToContextList(CosmosDiagnosticsInternal cosmosDiagnosticsInternal)
 {
     lock (this.ContextList)
     {
         this.ContextList.Add(cosmosDiagnosticsInternal);
     }
 }
        internal void AddDiagnosticsInternal(CosmosDiagnosticsInternal diagnosticsInternal)
        {
            if (diagnosticsInternal == null)
            {
                throw new ArgumentNullException(nameof(diagnosticsInternal));
            }

            this.ContextList.AddDiagnostics(diagnosticsInternal);
        }
예제 #3
0
 public CosmosDiagnosticsTraceDatum(CosmosDiagnosticsInternal cosmosDiagnostics)
 {
     this.CosmosDiagnostics = cosmosDiagnostics ?? throw new ArgumentNullException(nameof(cosmosDiagnostics));
 }