Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (184.108.40.2060)
public void ConnectAsync( SessionSettings sessionSettings, HostSettings hostSettings, AuthSettings authSettings, StationSettings stationSettings, completedCallback, userState )
Public Sub ConnectAsync ( _ sessionSettings As SessionSettings, _ hostSettings As HostSettings, _ authSettings As AuthSettings, _ stationSettings As StationSettings, _ completedCallback As , _ userState As _ )
- Type: ININ.IceLib.Connection..::..SessionSettings
The SessionSettings for the connection.
- Type: ININ.IceLib.Connection..::..StationSettings
The StationSettings for the connection.
The callback to invoke when the asynchronous operation completes.
An optional object that contains state information for this request. This object is a way for the caller to store context information which will be provided to the AsyncCompleted event. If no context information is desired then nullNothingnullptra null reference (Nothing in Visual Basic) may be supplied.
For security reasons a user can only be logged in to one station at a time. If the user logs in to a different station, the system drops the original station connection. Multiple instances of client applications may be run on the same machine using different user logins and the same station.
If a user who is logged in via Interaction Client .NET Edition tries, for example, to connect using Interaction Connect, they will receive a message at the original station such as: "Your connection has been dropped due to a subsequent login on a different station".
When completed, the completedCallback delegate is invoked on a thread appropriate to the application-model, such as the GUI thread in a UI application. The Error property of the passed to the delegate will contain any exceptions thrown while executing the asynchronous task. See the synchronous version of this method for more detailed error information. For more information on async method calls, see How Async Calls Work.
|TutorialExample||LoginViewModel.cs, line 191, in LoginViewModel.PerformLogin|
|A parameter is nullNothingnullptra null reference (Nothing in Visual Basic).|
|ININ.IceLib.Connection..::..RequestTimeoutException||The request timed out while waiting for a response.|
|ININ.IceLib.Connection..::..SessionDisconnectedException||The Session does not have a valid connection.|
|The Session has been disposed.|
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.