Class ProtectiveEarthTest
- Namespace
- Loehnert.Lisrt.HighVoltageTester.Etl
- Assembly
- Loehnert.Lisrt.HighVoltageTester.Etl.dll
Represents a protective earth test.
public class ProtectiveEarthTest : TestBase<ProtectiveEarthTestConfiguration, ProtectiveEarthTestResult>, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseProtectiveEarthTest
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Methods
Run(ProtectiveEarthTestConfiguration, CancellationToken, int)
Runs a high voltage test.
public override ProtectiveEarthTestResult Run(ProtectiveEarthTestConfiguration configuration, CancellationToken cancellationToken, int startTimeoutInMS = 10000)
Parameters
configuration
ProtectiveEarthTestConfigurationConfiguration of the test.
cancellationToken
CancellationTokenCancellation token to cancel the method.
startTimeoutInMS
intTimeout in milliseconds used to wait for test to start. This is relevant if the test is started by the test probe, for example. -1 disables the timeout.
Returns
- ProtectiveEarthTestResult
High voltage measurement result data.
Exceptions
- NotInitializedException
Thrown when the module is not initialized.
- ArgumentNullException
Thrown when
configuration
is null.- TimeoutException
Thrown when the test does not start within
startTimeoutInMS
-or- the test is not finished within the configured timeout.