Add logger to default ctor.

This commit is contained in:
Eugene Wang
2025-12-26 08:24:28 -05:00
parent a26745810e
commit 3f0e9eceb8
2 changed files with 4 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<!--change these in each release-->
<VersionPrefix>4.0.0.0</VersionPrefix>
<VersionSuffix>alpha.26</VersionSuffix>
<VersionSuffix>alpha.27</VersionSuffix>
<!--keep it the same until major # changes-->
<AssemblyVersion>4.0.0.0</AssemblyVersion>

View File

@@ -19,8 +19,9 @@ namespace NTwain
/// <summary>
/// Creates TWAIN session with current app info.
/// </summary>
public TwainAppSession()
: this(new TW_IDENTITY_LEGACY(Environment.GetCommandLineArgs()[0])) { }
/// <param name="logger"></param>
public TwainAppSession(ILogger? logger = null)
: this(new TW_IDENTITY_LEGACY(Environment.GetCommandLineArgs()[0]), logger) { }
/// <summary>
/// Creates TWAIN session with explicit app info.