OPC Studio User's Guide and Reference
TestConnectionAsync Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.Extensions Namespace > IEasyUASubscriberExtension2 Class : TestConnectionAsync Method
Tests whether an OPC UA PubSub connection can be successfully established. Asynchronous.

The method tests asynchronously whether an OPC UA PubSub connection can be successfully established.

Due to asynchronous nature of some communication channels, successful test outcome does not always imply that a connection has been fully established.

The waitMilliseconds parameter is not a timeout in its traditional sense, i.e. a maximum time allowed for the operation. Here, this method actually waits for the time given by waitMilliseconds parameter unless a failure occurs.

Overload List
OverloadDescription
Tests whether an OPC UA PubSub connection can be successfully established. Asynchronous. Asynchronously tests an OPC UA PubSub connection, specifying the PubSub connection descriptor.  
Asynchronously tests an OPC UA PubSub connection, specifying the subscribe dataset arguments.  
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also