Class CastAdapter
Represents an adapter for the Cast domain to simplify the command interface.
public class CastAdapter
- Inheritance
-
CastAdapter
- Inherited Members
Constructors
CastAdapter(IDevToolsSession)
Initializes a new instance of the CastAdapter class.
public CastAdapter(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
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSinkToUse(SetSinkToUseCommandSettings, CancellationToken, int?, bool)
setSinkToUse
public Task<SetSinkToUseCommandResponse?> SetSinkToUse(SetSinkToUseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSinkToUseCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartDesktopMirroring(StartDesktopMirroringCommandSettings, CancellationToken, int?, bool)
startDesktopMirroring
public Task<StartDesktopMirroringCommandResponse?> StartDesktopMirroring(StartDesktopMirroringCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartDesktopMirroringCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartTabMirroring(StartTabMirroringCommandSettings, CancellationToken, int?, bool)
startTabMirroring
public Task<StartTabMirroringCommandResponse?> StartTabMirroring(StartTabMirroringCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartTabMirroringCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopCasting(StopCastingCommandSettings, CancellationToken, int?, bool)
stopCasting
public Task<StopCastingCommandResponse?> StopCasting(StopCastingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopCastingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
IssueUpdated
issueUpdated
public event EventHandler<IssueUpdatedEventArgs>? IssueUpdated
Event Type
SinksUpdated
sinksUpdated
public event EventHandler<SinksUpdatedEventArgs>? SinksUpdated