Class SecurityAdapter
Represents an adapter for the Security domain to simplify the command interface.
public class SecurityAdapter
- Inheritance
-
SecurityAdapter
- Inherited Members
Constructors
SecurityAdapter(IDevToolsSession)
Initializes a new instance of the SecurityAdapter class.
public SecurityAdapter(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
HandleCertificateError(HandleCertificateErrorCommandSettings, CancellationToken, int?, bool)
handleCertificateError
public Task<HandleCertificateErrorCommandResponse> HandleCertificateError(HandleCertificateErrorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
HandleCertificateErrorCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetIgnoreCertificateErrors(SetIgnoreCertificateErrorsCommandSettings, CancellationToken, int?, bool)
setIgnoreCertificateErrors
public Task<SetIgnoreCertificateErrorsCommandResponse> SetIgnoreCertificateErrors(SetIgnoreCertificateErrorsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetIgnoreCertificateErrorsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetOverrideCertificateErrors(SetOverrideCertificateErrorsCommandSettings, CancellationToken, int?, bool)
setOverrideCertificateErrors
public Task<SetOverrideCertificateErrorsCommandResponse> SetOverrideCertificateErrors(SetOverrideCertificateErrorsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetOverrideCertificateErrorsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
CertificateError
certificateError
public event EventHandler<CertificateErrorEventArgs> CertificateError
Event Type
SecurityStateChanged
securityStateChanged
public event EventHandler<SecurityStateChangedEventArgs> SecurityStateChanged
Event Type
VisibleSecurityStateChanged
visibleSecurityStateChanged
public event EventHandler<VisibleSecurityStateChangedEventArgs> VisibleSecurityStateChanged