Class IPAddressAccessibilityCheck
The IPAddressAccessibilityCheck class is a concrete implementation of the TestComponent class that is used to check the accessibility of an IP address. It uses the mechanisms provided by the operating system to check the accessibility of an IP address.
public sealed class IPAddressAccessibilityCheck : TestComponent, ITestComponent- Inheritance
- 
      
      
      IPAddressAccessibilityCheck
- Implements
- Inherited Members
Remarks
note
The IPAddressAccessibilityCheck component requires the DnsLookup component to be registered before it in the pipeline, because it depends on the DNS resolution results.
Constructors
IPAddressAccessibilityCheck(PingConfiguration)
Initializes new instance of th
public IPAddressAccessibilityCheck(PingConfiguration configuration)Parameters
- configurationPingConfiguration
- The ping operation configuration. 
Fields
StepName
The name of the test component that represents a IPAddressAccessibilityCheck of tests.
public const string StepName = "IPAddress accessibility check"Field Value
Remarks
This constant is used to register the IPAddressAccessibilityCheck class in the test framework.
Methods
HandleAsync(Uri, TestSettings, TestContext, IServiceProvider, CancellationToken)
This method performs the test step operation asynchronously.
public override Task HandleAsync(Uri url, TestSettings settings, TestContext context, IServiceProvider serviceProvider, CancellationToken cancellationToken = default)Parameters
- urlUri
- A Uri object that represents the URL of the page being validated. 
- settingsTestSettings
- A TestSettings object that contains the settings for the test. 
- contextTestContext
- A TestContext object that represents the test context. 
- serviceProviderIServiceProvider
- An instance object of a mechanism for retrieving a service object. 
- cancellationTokenCancellationToken
- An optional CancellationToken object that can be used to cancel this operation.