public ExceptionData DeepClone() { var other = new ExceptionData(); other.ver = this.ver; other.severityLevel = this.severityLevel; other.problemId = this.problemId; Debug.Assert(other.properties != null, "The constructor should have allocated properties dictionary"); Debug.Assert(other.measurements != null, "The constructor should have allocated the measurements dictionary"); Utils.CopyDictionary(this.properties, other.properties); Utils.CopyDictionary(this.measurements, other.measurements); Debug.Assert(other.exceptions != null, "The constructor should have allocated properties dictionary"); foreach (var e in this.exceptions) { other.exceptions.Add(e); } return(other); }
/// <summary> /// Initializes a new instance of the <see cref="ExceptionTelemetry"/> class with empty properties. /// </summary> public ExceptionTelemetry() { this.Data = new ExceptionData(); this.context = new TelemetryContext(this.Data.properties, new Dictionary<string, string>()); this.HandledAt = default(ExceptionHandledAt); }
/// <summary> /// Initializes a new instance of the <see cref="ExceptionTelemetry"/> class with empty properties. /// </summary> public ExceptionTelemetry() { this.Data = new ExceptionData(); this.context = new TelemetryContext(this.Data.properties); this.HandledAt = default(ExceptionHandledAt); }