Some refactor ideas

This commit is contained in:
soukoku
2014-04-05 16:48:28 -04:00
parent 4fa3e77fba
commit 67c6705224
49 changed files with 183 additions and 163 deletions

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class CieColor : OpBase
{
internal CieColor(ITwainSessionInternal session) : base(session) { }
internal CieColor(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation causes the Source to report the currently active parameters to be used in

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class ExtImageInfo : OpBase
{
internal ExtImageInfo(ITwainSessionInternal session) : base(session) { }
internal ExtImageInfo(ITwainStateInternal session) : base(session) { }
public ReturnCode Get(TWExtImageInfo info)
{

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class Filter : OpBase
{
internal Filter(ITwainSessionInternal session) : base(session) { }
internal Filter(ITwainStateInternal session) : base(session) { }
/// <summary>

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class GrayResponse : OpBase
{
internal GrayResponse(ITwainSessionInternal session) : base(session) { }
internal GrayResponse(ITwainStateInternal session) : base(session) { }
/// <summary>
/// The Reset operation causes the Source to use its "identity response curve." The identity

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class IccProfile : OpBase
{
internal IccProfile(ITwainSessionInternal session) : base(session) { }
internal IccProfile(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation provides the application with the ICC profile associated with the image which is

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
sealed class ImageFileXfer : OpBase
{
internal ImageFileXfer(ITwainSessionInternal session) : base(session) { }
internal ImageFileXfer(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of an image from the Source to the application via

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class ImageInfo : OpBase
{
internal ImageInfo(ITwainSessionInternal session) : base(session) { }
internal ImageInfo(ITwainStateInternal session) : base(session) { }
public ReturnCode Get(out TWImageInfo info)
{

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class ImageLayout : OpBase
{
internal ImageLayout(ITwainSessionInternal session) : base(session) { }
internal ImageLayout(ITwainStateInternal session) : base(session) { }
public ReturnCode Get(out TWImageLayout layout)
{

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
sealed class ImageMemFileXfer : OpBase
{
internal ImageMemFileXfer(ITwainSessionInternal session) : base(session) { }
internal ImageMemFileXfer(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of an image from the Source to the application via

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
sealed class ImageMemXfer : OpBase
{
internal ImageMemXfer(ITwainSessionInternal session) : base(session) { }
internal ImageMemXfer(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of an image from the Source to the application via

View File

@@ -6,7 +6,7 @@ namespace NTwain.Triplets
{
sealed class ImageNativeXfer : OpBase
{
internal ImageNativeXfer(ITwainSessionInternal session) : base(session) { }
internal ImageNativeXfer(ITwainStateInternal session) : base(session) { }
/// <summary>
/// Causes the transfer of an images data from the Source to the application, via the Native transfer

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class JpegCompression : OpBase
{
internal JpegCompression(ITwainSessionInternal session) : base(session) { }
internal JpegCompression(ITwainStateInternal session) : base(session) { }
/// <summary>
/// Causes the Source to return the parameters that will be used during the compression of data

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class Palette8 : OpBase
{
internal Palette8(ITwainSessionInternal session) : base(session) { }
internal Palette8(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation causes the Source to report its current palette information.

View File

@@ -9,7 +9,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class RgbResponse : OpBase
{
internal RgbResponse(ITwainSessionInternal session) : base(session) { }
internal RgbResponse(ITwainStateInternal session) : base(session) { }
/// <summary>
/// Causes the Source to use its "identity" response curves for future RGB transfers. The identity

View File

@@ -7,8 +7,8 @@ namespace NTwain.Triplets
/// </summary>
public sealed class DGImage
{
ITwainSessionInternal _session;
internal DGImage(ITwainSessionInternal session)
ITwainStateInternal _session;
internal DGImage(ITwainStateInternal session)
{
if (session == null) { throw new ArgumentNullException("session"); }
_session = session;