IConnectionHandler interface | QSYS API Reference Guide
Defines the methods for handling connections.
Namespace: ASNA.DataGate.Client Assembly: ASNA.QSys.DataGate.Client.dll
Extends: IDisposable
Remarks
This interface provides methods for opening, closing, and managing connections. It can be implemented by any class that needs to manage connections, such as a database connection handler or a network connection handler.
Methods
Signature | Description |
---|---|
EnsureConnectionOpened() | Ensures that the connection is open. |
bool EnsureConnectionOpened()
Ensures that the connection is open.
Remarks
This method checks if the connection is already open. If it is not, it attempts to open the connection. It returns true if the connection had to be opened, and false if the connection was already open. This can be useful to ensure that a connection is open before performing operations that require it.
bool EnsureConnectionOpened()