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
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
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 = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
PrefetchStatusUpdated
prefetchStatusUpdated
public event EventHandler<PrefetchStatusUpdatedEventArgs> PrefetchStatusUpdated
Event Type
PreloadEnabledStateUpdated
preloadEnabledStateUpdated
public event EventHandler<PreloadEnabledStateUpdatedEventArgs> PreloadEnabledStateUpdated
Event Type
PreloadingAttemptSourcesUpdated
preloadingAttemptSourcesUpdated
public event EventHandler<PreloadingAttemptSourcesUpdatedEventArgs> PreloadingAttemptSourcesUpdated
Event Type
PrerenderStatusUpdated
prerenderStatusUpdated
public event EventHandler<PrerenderStatusUpdatedEventArgs> PrerenderStatusUpdated
Event Type
RuleSetRemoved
ruleSetRemoved
public event EventHandler<RuleSetRemovedEventArgs> RuleSetRemoved
Event Type
RuleSetUpdated
ruleSetUpdated
public event EventHandler<RuleSetUpdatedEventArgs> RuleSetUpdated