Пример #1
0
        /// <summary>
        /// Scans a file for viruses.
        /// </summary>
        protected override void ProcessRecord()
        {
            string virusName;

            var scanResult = Engine.ScanFile(Path, out virusName);

            var fileScanResult = new FileScanResult(Path, scanResult == ScanResult.Virus, virusName);

            WriteObject(fileScanResult);
        }
        /// <summary>
        /// Scans a file for viruses.
        /// </summary>
        protected override void ProcessRecord()
        {
            string virusName;

            var scanResult = Engine.ScanFile(Path, out virusName);

            var fileScanResult = new FileScanResult(Path, scanResult == ScanResult.Virus, virusName);

            WriteObject(fileScanResult);
        }