SessionOnConnectAsync Method
Handler function connecting the Session.
Namespace: TwinCAT
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
protected virtual Task<IConnection?> OnConnectAsync(
bool reconnect,
CancellationToken cancel
)Parameters
|
reconnect Boolean |
if set to true [reconnect]. |
|
cancel CancellationToken |
The cancellation token that can be used by other objects or threads to receive notice of cancellation. |