mirror of
https://github.com/soukoku/ntwain.git
synced 2025-11-08 18:44:47 +08:00
Some refactor ideas
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user