mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Some name-breaking changes so master is now v3. V2 will continue to be the code on nuget for now.
This commit is contained in:
30
NTwain/Triplets/TripletBase.cs
Normal file
30
NTwain/Triplets/TripletBase.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using NTwain.Internals;
|
||||
using System;
|
||||
|
||||
namespace NTwain.Triplets
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for grouping triplet operations messages.
|
||||
/// </summary>
|
||||
public abstract class TripletBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TripletBase" /> class.
|
||||
/// </summary>
|
||||
/// <param name="session">The session.</param>
|
||||
/// <exception cref="System.ArgumentNullException"></exception>
|
||||
internal TripletBase(ITwainSessionInternal session)
|
||||
{
|
||||
if (session == null) { throw new ArgumentNullException("session"); }
|
||||
Session = session;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the twain session.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The session.
|
||||
/// </value>
|
||||
internal ITwainSessionInternal Session { get; private set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user