/// <summary> /// Raises the ItemScanCompleted event. /// </summary> /// <param name="e"></param> protected void OnItemScanCompleted(ScanCompletedArgs e) { ScanCompleted completed = ItemScanCompleted; if (completed != null) { completed(e); } }
/// <summary> /// Raises the VirusFound event. /// </summary> /// <param name="e"></param> protected void OnVirusFound(ScanCompletedArgs e) { VirusFound found = this.VirusFound; if (found != null) { found(e); } }
/// <summary> /// Base handler for the ItemScanCompleted event. Logs every event to log4net. /// </summary> /// <param name="e"></param> protected virtual void ItemScanCompletedHandler( ScanCompletedArgs e ) { _logger.Info( string.Format( "SCANNED {0}\nRESULT {1}", e.Item, e.Result ) ); //Console.SetOut( Console.Error ); //Console.WriteLine( string.Format( "SCANNED {0}\nRESULT {1}", e.Item, e.Result ) ); }
/// <summary> /// Raises the ItemScanCompleted event. /// </summary> /// <param name="e"></param> protected void OnItemScanCompleted( ScanCompletedArgs e ) { ScanCompleted completed = ItemScanCompleted; if(completed!=null) completed( e ); }
/// <summary> /// Raises the VirusFound event. /// </summary> /// <param name="e"></param> protected void OnVirusFound( ScanCompletedArgs e ) { VirusFound found = this.VirusFound; if(found!=null) found( e ); }
/// <summary> /// Base handler for the ItemScanCompleted event. Logs every event to log4net. /// </summary> /// <param name="e"></param> protected virtual void ItemScanCompletedHandler(ScanCompletedArgs e) { _logger.Info(string.Format("SCANNED {0}\nRESULT {1}", e.Item, e.Result)); //Console.SetOut( Console.Error ); //Console.WriteLine( string.Format( "SCANNED {0}\nRESULT {1}", e.Item, e.Result ) ); }