コード例 #1
0
ファイル: UdpLogSource.cs プロジェクト: lshain/LogWatch
        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
ファイル: UdpLogSource.cs プロジェクト: SmartFire/LogWatch
        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();
        }