private void AddSummaryInfo(CosmosDiagnosticsContext newContext) { if (Object.ReferenceEquals(this, newContext)) { return; } this.totalRequestCount += newContext.GetTotalRequestCount(); this.failedRequestCount += newContext.GetFailedRequestCount(); }