public void Append(CosmosDiagnosticsContextList newContext) { if (newContext == null) { throw new ArgumentNullException(nameof(newContext)); } this.contextList.AddRange(newContext); }
public override void Visit(CosmosDiagnosticsContextList cosmosDiagnosticsContextList) { this.jsonWriter.WriteStartArray(); foreach (CosmosDiagnosticsInternal cosmosDiagnosticsInternal in cosmosDiagnosticsContextList) { cosmosDiagnosticsInternal.Accept(this); } this.jsonWriter.WriteEndArray(); }