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
- 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
HandleCertificateError(HandleCertificateErrorCommandSettings, CancellationToken, int?, bool)
handleCertificateError
public Task<HandleCertificateErrorCommandResponse?> HandleCertificateError(HandleCertificateErrorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandHandleCertificateErrorCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetIgnoreCertificateErrors(SetIgnoreCertificateErrorsCommandSettings, CancellationToken, int?, bool)
setIgnoreCertificateErrors
public Task<SetIgnoreCertificateErrorsCommandResponse?> SetIgnoreCertificateErrors(SetIgnoreCertificateErrorsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetIgnoreCertificateErrorsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetOverrideCertificateErrors(SetOverrideCertificateErrorsCommandSettings, CancellationToken, int?, bool)
setOverrideCertificateErrors
public Task<SetOverrideCertificateErrorsCommandResponse?> SetOverrideCertificateErrors(SetOverrideCertificateErrorsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetOverrideCertificateErrorsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
CertificateError
certificateError
public event EventHandler<CertificateErrorEventArgs>? CertificateErrorEvent Type
SecurityStateChanged
securityStateChanged
public event EventHandler<SecurityStateChangedEventArgs>? SecurityStateChangedEvent Type
VisibleSecurityStateChanged
visibleSecurityStateChanged
public event EventHandler<VisibleSecurityStateChangedEventArgs>? VisibleSecurityStateChanged