Files
MPF/MPF.Check/ConsoleLogger.cs

26 lines
696 B
C#
Raw Permalink Normal View History

2023-10-10 15:15:42 -04:00
using System;
2023-10-26 00:57:23 -04:00
using BinaryObjectScanner;
2024-05-28 13:44:57 -04:00
using MPF.Frontend;
2023-10-10 15:15:42 -04:00
2024-05-27 23:40:19 -04:00
namespace MPF.Check
2023-10-10 15:15:42 -04:00
{
public static class ConsoleLogger
{
/// <summary>
/// Simple process counter to write to console
/// </summary>
public static void ProgressUpdated(object? sender, ResultEventArgs value)
2023-10-10 15:15:42 -04:00
{
Console.WriteLine(value.Message);
}
/// <summary>
/// Simple process counter to write to console
/// </summary>
2023-10-10 23:22:21 -04:00
public static void ProgressUpdated(object? sender, ProtectionProgress value)
2023-10-10 15:15:42 -04:00
{
Console.WriteLine($"{value.Percentage * 100:N2}%: {value.Filename} - {value.Protection}");
}
}
}