mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-09 11:21:06 +08:00
Add logger to default ctor.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user