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
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
session
is 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
command
CloseCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Read(ReadCommandSettings, CancellationToken, int?, bool)
read
public Task<ReadCommandResponse> Read(ReadCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ReadCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ResolveBlob(ResolveBlobCommandSettings, CancellationToken, int?, bool)
resolveBlob
public Task<ResolveBlobCommandResponse> ResolveBlob(ResolveBlobCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ResolveBlobCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool