FactoryGetConnection Method (String, ConnectionPreferences, Boolean) |
Asynchronously gets an HTTP connection to an innovator instance (or proxy) at the given URL
Namespace: Innovator.ClientAssembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax public static IPromise<IRemoteConnection> GetConnection(
string url,
ConnectionPreferences preferences,
bool async
)
Public Shared Function GetConnection (
url As String,
preferences As ConnectionPreferences,
async As Boolean
) As IPromise(Of IRemoteConnection)
Parameters
- url
- Type: SystemString
URL of the innovator instance (or proxy) - preferences
- Type: Innovator.ClientConnectionPreferences
Object containing preferences for the connection - async
- Type: SystemBoolean
Whether or not to return the connection asynchronously. This is important
as an HTTP request must be issued to determine the type of connection to create
Return Value
Type:
IPromiseIRemoteConnectionA promise to return a connection object
See Also