/// <summary>
        ///     Initializes a new instance of the <see cref="EQLogFolderWatcher" /> class.
        /// </summary>
        /// <param name="logFolder">The log folder.</param>
        /// <param name="ignorableCharacterProvider">The ignorable character provider.</param>
        /// <param name="noActivitySeconds">
        ///     The number of seconds of no activity on a file before the logger notifies listeners
        ///     that its changed
        /// </param>
        /// <param name="secondsBetweenAuctionBatches">The seconds between auction batches.</param>
        /// <param name="maxAuctionLinesPerBatch">The maximum auction lines per batch.</param>
        public EQLogFolderWatcher(string logFolder, IIgnorableCharacterProvider ignorableCharacterProvider, int noActivitySeconds = 15, int secondsBetweenAuctionBatches = 30, int maxAuctionLinesPerBatch = 150)
        {
            if (logFolder == null) throw new ArgumentNullException(nameof(logFolder));
            if (ignorableCharacterProvider == null) throw new ArgumentNullException(nameof(ignorableCharacterProvider));

            _ignorableCharacterProvider = ignorableCharacterProvider;
            _noActivitySeconds = noActivitySeconds;
            _secondsBetweenAuctionBatches = secondsBetweenAuctionBatches;
            _maxAuctionLinesPerBatch = maxAuctionLinesPerBatch;
            this.LogFolder = logFolder;
        }
Example #2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="EQLogFolderWatcher" /> class.
        /// </summary>
        /// <param name="logFolder">The log folder.</param>
        /// <param name="ignorableCharacterProvider">The ignorable character provider.</param>
        /// <param name="noActivitySeconds">
        ///     The number of seconds of no activity on a file before the logger notifies listeners
        ///     that its changed
        /// </param>
        /// <param name="secondsBetweenAuctionBatches">The seconds between auction batches.</param>
        /// <param name="maxAuctionLinesPerBatch">The maximum auction lines per batch.</param>
        public EQLogFolderWatcher(string logFolder, IIgnorableCharacterProvider ignorableCharacterProvider, int noActivitySeconds = 15, int secondsBetweenAuctionBatches = 30, int maxAuctionLinesPerBatch = 150)
        {
            if (logFolder == null)
            {
                throw new ArgumentNullException(nameof(logFolder));
            }
            if (ignorableCharacterProvider == null)
            {
                throw new ArgumentNullException(nameof(ignorableCharacterProvider));
            }

            _ignorableCharacterProvider   = ignorableCharacterProvider;
            _noActivitySeconds            = noActivitySeconds;
            _secondsBetweenAuctionBatches = secondsBetweenAuctionBatches;
            _maxAuctionLinesPerBatch      = maxAuctionLinesPerBatch;
            this.LogFolder = logFolder;
        }