ISessionConnectAsync Method
Connects the session and returns the established IConnection object.
Namespace: TwinCAT
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
Task<IConnection> ConnectAsync(
CancellationToken cancel
)Parameters
|
cancel CancellationToken |
|
Remarks
The IConnection will be valid until the ISession is disconnected via the Disconnect method or the Dispose method is called. Any possible resurrections after communication losses will be done transparently within the IConnection so that the IConnection instance and ISession instance remains.