コード例 #1
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;
 }
コード例 #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;
 }
コード例 #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;
        }
コード例 #4
0
        /// <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;
        }
コード例 #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);
 }
コード例 #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;
 }
コード例 #7
0
        /// <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>();
        }
コード例 #8
0
 /// <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);
 }
コード例 #9
0
 /// <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;
 }
コード例 #10
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);
 }
コード例 #11
0
 /// <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;
 }