Some internal refactoring.

This commit is contained in:
soukoku
2014-04-04 07:25:11 -04:00
parent d418b0c751
commit 0d4f60171f
44 changed files with 157 additions and 109 deletions

View File

@@ -11,16 +11,15 @@ namespace NTwain.Triplets
/// </summary>
public abstract class OpBase
{
TwainSession _session;
/// <summary>
/// Initializes a new instance of the <see cref="OpBase" /> class.
/// </summary>
/// <param name="session">The session.</param>
/// <exception cref="System.ArgumentNullException"></exception>
protected OpBase(TwainSession session)
internal OpBase(ITwainSessionInternal session)
{
if (session == null) { throw new ArgumentNullException("session"); }
_session = session;
Session = session;
}
/// <summary>
@@ -29,6 +28,6 @@ namespace NTwain.Triplets
/// <value>
/// The session.
/// </value>
protected TwainSession Session { get { return _session; } }
internal ITwainSessionInternal Session { get; private set; }
}
}