Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }