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

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
sealed class AudioFileXfer : OpBase
{
internal AudioFileXfer(ITwainSessionInternal session) : base(session) { }
internal AudioFileXfer(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of audio from the Source to the application via the
/// disk-file transfer mechanism. It causes the transfer to begin.

View File

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
public sealed class AudioInfo : OpBase
{
internal AudioInfo(ITwainSessionInternal session) : base(session) { }
internal AudioInfo(ITwainStateInternal session) : base(session) { }
/// <summary>
/// Used to get the information of the current audio data ready to transfer.
/// </summary>

View File

@@ -8,7 +8,7 @@ namespace NTwain.Triplets
/// </summary>
sealed class AudioNativeXfer : OpBase
{
internal AudioNativeXfer(ITwainSessionInternal session) : base(session) { }
internal AudioNativeXfer(ITwainStateInternal session) : base(session) { }
/// <summary>
/// Causes the transfer of an audio data from the Source to the application, via the Native
/// transfer mechanism, to begin. The resulting data is stored in main memory in a single block.

View File

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