Click or drag to resize
FactoryGetConnection Method (String, ConnectionPreferences, Boolean)
Asynchronously gets an HTTP connection to an innovator instance (or proxy) at the given URL

Namespace: Innovator.Client
Assembly: 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
)

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: IPromiseIRemoteConnection
A promise to return a connection object
See Also