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
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
Bind(BindCommandSettings, CancellationToken, int?, bool)
bind
public Task<BindCommandResponse?> Bind(BindCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandBindCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Unbind(UnbindCommandSettings, CancellationToken, int?, bool)
unbind
public Task<UnbindCommandResponse?> Unbind(UnbindCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
commandUnbindCommandSettingscancellationTokenCancellationTokenmillisecondsTimeoutint?throwExceptionIfResponseNotReceivedbool
Returns
Events
Accepted
accepted
public event EventHandler<AcceptedEventArgs>? Accepted