ntwain/NTwain/Triplets/OpBase.cs

34 lines
817 B
C#
Raw Normal View History

2014-04-03 07:01:21 +08:00
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>
2014-04-06 04:48:28 +08:00
internal OpBase(ITwainStateInternal session)
2014-04-03 07:01:21 +08:00
{
if (session == null) { throw new ArgumentNullException("session"); }
2014-04-04 19:25:11 +08:00
Session = session;
2014-04-03 07:01:21 +08:00
}
/// <summary>
/// Gets the twain session.
/// </summary>
/// <value>
/// The session.
/// </value>
2014-04-06 04:48:28 +08:00
internal ITwainStateInternal Session { get; private set; }
2014-04-03 07:01:21 +08:00
}
}