private void AddSummaryInfo(CosmosDiagnosticsContext newContext) { if (Object.ReferenceEquals(this, newContext)) { return; } this.totalResponseCount += newContext.GetTotalResponseCount(); this.failedResponseCount += newContext.GetFailedResponseCount(); this.retriableResponseCount += newContext.GetRetriableResponseCount(); }