Пример #1
0
 internal void ConnectActiveIndication(ConnectActiveIndication indication)
 {
     try {
         ConnectActiveResponse response = new ConnectActiveResponse(indication);
         _application.SendMessage(response);
         Status = ConnectionStatus.D_Connected;
         if (_inititator)
         {
             ConnectB3Request request = new ConnectB3Request();
             request.Identifier.Value = response.Identifier.Value;
             _application.SendMessage(request);
         }
     } catch (Exception e) {
         Trace.TraceError("Connection#{0}::ConnectActiveIndication, Exception = {1}", ValidationHelper.HashString(this), e);
         throw;
     }
 }
Пример #2
0
 public ConnectActiveResponse(ConnectActiveIndication indication)
     : base(new PLCIParameter(), indication)
 {
 }
Пример #3
0
 /// <summary>
 /// Indicates the activation of a physical connection.
 /// </summary>
 /// <param name="header"></param>
 /// <param name="indication"></param>
 internal abstract void ConnectActiveIndication(ConnectActiveIndication indication);