internal ConnectionStateInterceptor(IAdsSession session) : base("ConnectionStateObserverInterceptor")
 {
     this._synchronizer    = new object();
     this._connectionState = TwinCAT.ConnectionState.Disconnected;
     this._lastSucceeded   = DateTime.MinValue;
     this._lastAccess      = DateTime.MinValue;
     this._session         = session;
 }
Ejemplo n.º 2
0
 public AdsStateChangedEventArgs2(StateInfo newState, StateInfo oldState, IAdsSession session)
 {
     this.NewState = newState;
     this.OldState = oldState;
     this.Session  = session;
 }