Class MediaAdapter
Represents an adapter for the Media domain to simplify the command interface.
public class MediaAdapter- Inheritance
- 
      
      MediaAdapter
- Inherited Members
Constructors
MediaAdapter(IDevToolsSession)
Initializes a new instance of the MediaAdapter class.
public MediaAdapter(IDevToolsSession session)Parameters
- sessionIDevToolsSession
- The 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
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
PlayerCreated
playerCreated
public event EventHandler<PlayerCreatedEventArgs>? PlayerCreatedEvent Type
PlayerErrorsRaised
playerErrorsRaised
public event EventHandler<PlayerErrorsRaisedEventArgs>? PlayerErrorsRaisedEvent Type
PlayerEventsAdded
playerEventsAdded
public event EventHandler<PlayerEventsAddedEventArgs>? PlayerEventsAddedEvent Type
PlayerMessagesLogged
playerMessagesLogged
public event EventHandler<PlayerMessagesLoggedEventArgs>? PlayerMessagesLoggedEvent Type
PlayerPropertiesChanged
playerPropertiesChanged
public event EventHandler<PlayerPropertiesChangedEventArgs>? PlayerPropertiesChanged