示例#1
0
        private Object thisLock = new Object(); // Used for thread safety synchronization

        #endregion Fields

        #region Constructors

        public HHMonitor(String handHistoryFilePath, IHHMonitorHandler handler)
        {
            this.handler = handler;
            this.monitoring = false;
            this.directory = Path.GetDirectoryName(handHistoryFilePath);
            this.handHistoryFilename = Path.GetFileName(handHistoryFilePath);
            this.filesLineTracker = new FilesLineTracker();
            this.lastLine = String.Empty;
            this.currentFilesize = 0;
        }
示例#2
0
        private Object thisLock = new Object(); // Used for thread safety synchronization

        public HHMonitor(String handHistoryFilePath, IHHMonitorHandler handler)
        {
            this.handler             = handler;
            this.monitoring          = false;
            this.directory           = Path.GetDirectoryName(handHistoryFilePath);
            this.handHistoryFilename = Path.GetFileName(handHistoryFilePath);
            this.filesLineTracker    = new FilesLineTracker();
            this.lastLine            = String.Empty;
            this.currentFilesize     = 0;
        }