File tree Expand file tree Collapse file tree
src/MediaConverters/MediaConverters.Lib/Imaging/Optimizations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System ;
2- using System . Diagnostics ;
32using System . IO ;
43
54namespace DotNetCampus . MediaConverters . Imaging . Optimizations ;
@@ -14,8 +13,6 @@ namespace DotNetCampus.MediaConverters.Imaging.Optimizations;
1413public readonly record struct ImageFileOptimizationContext ( FileInfo ImageFile ,
1514 DirectoryInfo WorkingFolder , int ? MaxImageWidth = null , int ? MaxImageHeight = null )
1615{
17- public Stopwatch TotalStopwatch { get ; } = Stopwatch . StartNew ( ) ;
18-
1916 public string TraceId { get ; init ; } = Guid . NewGuid ( ) . ToString ( "N" ) ;
2017
2118 public bool ShouldLogToConsole { get ; init ; } = false ;
@@ -33,7 +30,7 @@ public void LogMessage(string message)
3330
3431 if ( ShouldLogToConsole )
3532 {
36- Console . WriteLine ( $ " { message } Total Cost { TotalStopwatch . ElapsedMilliseconds } ms" ) ;
33+ Console . WriteLine ( message ) ;
3734 }
3835
3936 if ( ShouldLogToFile )
You can’t perform that action at this time.
0 commit comments