Compare commits

...

1 Commits

Author SHA1 Message Date
a4cfcaceee RuntimeHostConfigurationOption 2025-02-08 17:02:17 -07:00
3 changed files with 9 additions and 5 deletions

View File

@ -109,7 +109,7 @@ dotnet_diagnostic.CA1001.severity = error # CA1001: Types that own disposable fi
dotnet_diagnostic.CA1001.severity = none # Question - CA1001: Types that own disposable fields should be disposable
dotnet_diagnostic.CA1051.severity = error # CA1051: Do not declare visible instance fields
dotnet_diagnostic.CA1051.severity = none # Question - CA1051: Do not declare visible instance fields
dotnet_diagnostic.CA1416.severity = none # Question - CA1416: This call site is reachable on all platforms. 'EventLogEntryType.Error' is only supported on: 'windows'.
dotnet_diagnostic.CA1416.severity = error # Question - CA1416: This call site is reachable on all platforms. 'EventLogEntryType.Error' is only supported on: 'windows'.
dotnet_diagnostic.CA1510.severity = none # Question - CA1510: Use 'ArgumentNullException.ThrowIfNull' instead of explicitly throwing a new exception instance
dotnet_diagnostic.CA1511.severity = warning # CA1511: Use 'ArgumentException.ThrowIfNullOrEmpty' instead of explicitly throwing a new exception instance
dotnet_diagnostic.CA1513.severity = warning # Use 'ObjectDisposedException.ThrowIf' instead of explicitly throwing a new exception instance

View File

@ -12,9 +12,13 @@
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="ShellProgressBar" Version="5.2.0" />
<PackageReference Include="System.Drawing.Common" Version="8.0.12" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Phares.AA.Shared" Version="8.0.112" />
<RuntimeHostConfigurationOption Include="System.Drawing.EnableUnixSupport" Value="true" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Phares.AA.Shared" Version="8.1.112" />
<PackageReference Include="Phares.AA.Metadata " Version="8.0.112" />
</ItemGroup>
</Project>

View File

@ -195,9 +195,6 @@ public class RenameService : IRename, IDisposable
throw new NotSupportedException("Too many sidecar files!");
foreach (FileHolder fileHolder in keyValuePair.Value)
{
timeSpan = new(DateTime.Now.Ticks - ticks);
if (appSettings.RenameSettings.MaxMilliSecondsPerCall > timeSpan.TotalMilliseconds)
break;
if (appSettings.RenameSettings.SidecarExtensions.Contains(fileHolder.ExtensionLowered))
continue;
if (appSettings.RenameSettings.IgnoreExtensions.Contains(fileHolder.ExtensionLowered))
@ -247,6 +244,9 @@ public class RenameService : IRename, IDisposable
recordA = new(exifDirectory, fastForwardMovingPictureExpertsGroupUsed, fileInfo, filePath, new(sidecarFiles));
results.Add(recordA);
}
timeSpan = new(DateTime.Now.Ticks - ticks);
if (appSettings.RenameSettings.MaxMilliSecondsPerCall > timeSpan.TotalMilliseconds)
break;
}
return results;
}