Class PreloadAdapter
Represents an adapter for the Preload domain to simplify the command interface.
public class PreloadAdapter- Inheritance
- 
      
      PreloadAdapter
- Inherited Members
Constructors
PreloadAdapter(IDevToolsSession)
Initializes a new instance of the PreloadAdapter class.
public PreloadAdapter(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
PrefetchStatusUpdated
prefetchStatusUpdated
public event EventHandler<PrefetchStatusUpdatedEventArgs>? PrefetchStatusUpdatedEvent Type
PreloadEnabledStateUpdated
preloadEnabledStateUpdated
public event EventHandler<PreloadEnabledStateUpdatedEventArgs>? PreloadEnabledStateUpdatedEvent Type
PreloadingAttemptSourcesUpdated
preloadingAttemptSourcesUpdated
public event EventHandler<PreloadingAttemptSourcesUpdatedEventArgs>? PreloadingAttemptSourcesUpdatedEvent Type
PrerenderStatusUpdated
prerenderStatusUpdated
public event EventHandler<PrerenderStatusUpdatedEventArgs>? PrerenderStatusUpdatedEvent Type
RuleSetRemoved
ruleSetRemoved
public event EventHandler<RuleSetRemovedEventArgs>? RuleSetRemovedEvent Type
RuleSetUpdated
ruleSetUpdated
public event EventHandler<RuleSetUpdatedEventArgs>? RuleSetUpdated