mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
34 lines
817 B
C#
34 lines
817 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using NTwain.Values;
|
|
|
|
namespace NTwain.Triplets
|
|
{
|
|
/// <summary>
|
|
/// Base class for grouping triplet operations messages.
|
|
/// </summary>
|
|
public abstract class OpBase
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="OpBase" /> class.
|
|
/// </summary>
|
|
/// <param name="session">The session.</param>
|
|
/// <exception cref="System.ArgumentNullException"></exception>
|
|
internal OpBase(ITwainStateInternal session)
|
|
{
|
|
if (session == null) { throw new ArgumentNullException("session"); }
|
|
Session = session;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the twain session.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The session.
|
|
/// </value>
|
|
internal ITwainStateInternal Session { get; private set; }
|
|
}
|
|
}
|