ntwain/NTwain/Triplets/OpBase.cs
2014-04-05 16:48:28 -04:00

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; }
}
}