Class TetheringAdapter
Represents an adapter for the Tethering domain to simplify the command interface.
public class TetheringAdapter
- Inheritance
-
TetheringAdapter
- Inherited Members
Constructors
TetheringAdapter(IDevToolsSession)
Initializes a new instance of the TetheringAdapter class.
public TetheringAdapter(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
Bind(BindCommandSettings, CancellationToken, int?, bool)
bind
public Task<BindCommandResponse?> Bind(BindCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
BindCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Unbind(UnbindCommandSettings, CancellationToken, int?, bool)
unbind
public Task<UnbindCommandResponse?> Unbind(UnbindCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UnbindCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
Accepted
accepted
public event EventHandler<AcceptedEventArgs>? Accepted