/// <summary>
 /// Initializes a new instance of the <see cref="ProtocolMonitorLog"/> class.
 /// </summary>
 /// <param name="theOtherLog">the other object.</param>
 public ProtocolMonitorLog(ProtocolMonitorLog theOtherLog)
 {
     this.TotalSizeDataFrameReceived = theOtherLog.TotalSizeDataFrameReceived;
     this.TotalSizeControlFrameReceived = theOtherLog.TotalSizeControlFrameReceived;
     this.TotalSizeFrameSent = theOtherLog.TotalSizeFrameSent;
     this.TotalCountControlFramesSent = theOtherLog.TotalCountControlFramesSent;
     this.TotalCountControlFramesReceived = theOtherLog.TotalCountControlFramesReceived;
     this.TotalCountDataFramesSent = theOtherLog.TotalCountDataFramesSent;
     this.TotalCountDataFramesReceived = theOtherLog.TotalCountDataFramesReceived;
     this.TotalCountStreamsOpened = theOtherLog.TotalCountStreamsOpened;
     this.LogTitle = theOtherLog.LogTitle;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProtocolMonitorLog"/> class.
 /// </summary>
 /// <param name="theOtherLog">the other object.</param>
 public ProtocolMonitorLog(ProtocolMonitorLog theOtherLog)
 {
     this.TotalSizeDataFrameReceived      = theOtherLog.TotalSizeDataFrameReceived;
     this.TotalSizeControlFrameReceived   = theOtherLog.TotalSizeControlFrameReceived;
     this.TotalSizeFrameSent              = theOtherLog.TotalSizeFrameSent;
     this.TotalCountControlFramesSent     = theOtherLog.TotalCountControlFramesSent;
     this.TotalCountControlFramesReceived = theOtherLog.TotalCountControlFramesReceived;
     this.TotalCountDataFramesSent        = theOtherLog.TotalCountDataFramesSent;
     this.TotalCountDataFramesReceived    = theOtherLog.TotalCountDataFramesReceived;
     this.TotalCountStreamsOpened         = theOtherLog.TotalCountStreamsOpened;
     this.LogTitle = theOtherLog.LogTitle;
 }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProtocolMonitor"/> class.
        /// </summary>
        /// <param name="session">The protocol session instance.</param>
        public ProtocolMonitor()
        {
            this.exclusiveLock = new object();

            this.totals        = new ProtocolMonitorLog();
            this.exitEvent     = new ManualResetEvent(false);
            this.statsByStream = new StreamStats();
            this.State         = MonitorState.MonitorOff;
            this.savedStats    = new Dictionary <int, StatisticsSnapshot>();
            this.LastStartDate = DateTime.Now;
            this.LastEndDate   = this.LastStartDate;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProtocolMonitor"/> class.
        /// </summary>
        /// <param name="session">The sm session instance.</param>
        public ProtocolMonitor(SMSession session)
        {
            this.exclusiveLock = new object();

            if (session == null)
            {
                throw new ArgumentNullException("session");
            }

            this.totals        = new ProtocolMonitorLog();
            this.session       = session;
            this.exitEvent     = new ManualResetEvent(false);
            this.statsByStream = new StreamStats();
            this.State         = MonitorState.MonitorOff;
            this.savedStats    = new Dictionary <int, StatisticsSnapshot>();
            this.LastStartDate = DateTime.Now;
            this.LastEndDate   = this.LastStartDate;
        }
Esempio n. 5
0
 /// <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);
 }
Esempio n. 6
0
 /// <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;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProtocolMonitor"/> class.
        /// </summary>
        /// <param name="session">The sm session instance.</param>
        public ProtocolMonitor(SMSession session)
        {
            this.exclusiveLock = new object();

            if (session == null)
            {
                throw new ArgumentNullException("session");
            }

            this.totals = new ProtocolMonitorLog();
            this.session = session;
            this.exitEvent = new ManualResetEvent(false);
            this.statsByStream = new StreamStats();
            this.State = MonitorState.MonitorOff;
            this.savedStats = new Dictionary<int, StatisticsSnapshot>();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="StatisticsSnapshot"/> struct.
 /// </summary>
 /// <param name="http">The HTTP statistics.</param>
 public StatisticsSnapshot(HttpTrafficLog http)
 {
     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>
 public StatisticsSnapshot(ProtocolMonitorLog totals)
 {
     this.splusmLog = new ProtocolMonitorLog(totals);
     this.httpLog = null;
 }
 /// <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 Protocol 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;
 }