Beispiel #1
0
        internal void DisconnectIndication(DisconnectIndication indication)
        {
            Connection connection = Connections.GetConnectionByPLCI(indication.Identifier.PLCI);

            Debug.Assert(connection != null, "Connecion needs to exist at this point.");
            DisconnectResponse response = new DisconnectResponse(indication);

            _application.SendMessage(response);
            connection.Status = ConnectionStatus.Disconnected;
            Connections.InternalRemove(indication.Identifier.PLCI);
            //connection.Dispose();
        }
Beispiel #2
0
 public DisconnectResponse(DisconnectIndication indication) : base(new PLCIParameter(), indication)
 {
 }
 /// <summary>
 /// Indicates the clearing of a physical connection
 /// </summary>
 /// <param name="header"></param>
 /// <param name="indication"></param>
 internal abstract void DisconnectIndication(DisconnectIndication indication);