/// <summary> /// Initializes a new instance of the <see cref="StatisticsSnapshot"/> struct. /// </summary> /// <param name="http">The HTTP statistics.</param> /// <param name="dur">The time span.</param> public StatisticsSnapshot(HttpTrafficLog http, TimeSpan dur) { this.duration = dur; this.splusmLog = null; this.httpLog = new HttpTrafficLog(http); }
/// <summary> /// Initializes a new instance of the <see cref="StatisticsSnapshot"/> struct. /// </summary> /// <param name="totals">The SM statistics.</param> /// <param name="dur">The time span.</param> public StatisticsSnapshot(ProtocolMonitorLog totals, TimeSpan dur) { this.duration = dur; this.splusmLog = new ProtocolMonitorLog(totals); this.httpLog = null; }