Пример #1
0
        private void InitializeLogSource()
        {
            ILogFormat logFormat;

            using (var fileStream = File.Open(this.dumpFilePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
                logFormat = this.SelectLogFormat(fileStream);

            this.fileSource = new FileLogSource(this.dumpFilePath, logFormat);
            this.fileSourceCreated.Set();
        }
Пример #2
0
        private void InitializeLogSource() {
            ILogFormat logFormat;

            using (var fileStream = File.Open(this.dumpFilePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
                logFormat = this.SelectLogFormat(fileStream);

            this.fileSource = new FileLogSource(this.dumpFilePath, logFormat);
            this.fileSourceCreated.Set();
        }