Class BackgroundServiceAdapter
- Namespace
- OpenQA.Selenium.DevTools.V142.BackgroundService
- Assembly
- WebDriver.dll
Represents an adapter for the BackgroundService domain to simplify the command interface.
public class BackgroundServiceAdapter- Inheritance
- 
      
      BackgroundServiceAdapter
- Inherited Members
Constructors
BackgroundServiceAdapter(IDevToolsSession)
Initializes a new instance of the BackgroundServiceAdapter class.
public BackgroundServiceAdapter(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
ClearEvents(ClearEventsCommandSettings, CancellationToken, int?, bool)
clearEvents
public Task<ClearEventsCommandResponse?> ClearEvents(ClearEventsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandClearEventsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetRecording(SetRecordingCommandSettings, CancellationToken, int?, bool)
setRecording
public Task<SetRecordingCommandResponse?> SetRecording(SetRecordingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetRecordingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StartObserving(StartObservingCommandSettings, CancellationToken, int?, bool)
startObserving
public Task<StartObservingCommandResponse?> StartObserving(StartObservingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStartObservingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
StopObserving(StopObservingCommandSettings, CancellationToken, int?, bool)
stopObserving
public Task<StopObservingCommandResponse?> StopObserving(StopObservingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandStopObservingCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
BackgroundServiceEventReceived
backgroundServiceEventReceived
public event EventHandler<BackgroundServiceEventReceivedEventArgs>? BackgroundServiceEventReceivedEvent Type
RecordingStateChanged
recordingStateChanged
public event EventHandler<RecordingStateChangedEventArgs>? RecordingStateChanged