Class IOAdapter
Represents an adapter for the IO domain to simplify the command interface.
public class IOAdapter
- Inheritance
-
IOAdapter
- Inherited Members
Constructors
IOAdapter(IDevToolsSession)
Initializes a new instance of the IOAdapter class.
public IOAdapter(IDevToolsSession session)
Parameters
sessionIDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
Close(CloseCommandSettings, CancellationToken, int?, bool)
close
public Task<CloseCommandResponse?> Close(CloseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandCloseCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Read(ReadCommandSettings, CancellationToken, int?, bool)
read
public Task<ReadCommandResponse> Read(ReadCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandReadCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
ResolveBlob(ResolveBlobCommandSettings, CancellationToken, int?, bool)
resolveBlob
public Task<ResolveBlobCommandResponse> ResolveBlob(ResolveBlobCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandResolveBlobCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool