Beispiel #1
0
        /*
         * Notifies a member of a connection that the connection was closed.
         */
        protected override void OnClose(DicomExceptionCode error, DicomNet net)
        {
            if (Clients.ContainsKey(net.PeerAddress))
            {
                Client client = Clients[net.PeerAddress];

                Clients.Remove(net.PeerAddress);

                client.Dispose( );
            }
            else
            {
                net.Dispose( );
            }
        }
Beispiel #2
0
        protected override void OnClose(DicomExceptionCode error, DicomNet net)
        {
            if (Clients.ContainsKey(net.PeerAddress + "_" + net.PeerPort))
            {
                Client client = Clients[net.PeerAddress + "_" + net.PeerPort];

                mf.RemoveClient(client);
                Clients.Remove(net.PeerAddress + "_" + net.PeerPort);
                client.Terminate();
                client.Dispose();
            }
            else
            {
                net.Dispose();
            }
        }
Beispiel #3
0
        protected override void OnClose(DicomExceptionCode error, DicomNet net)
        {
            base.OnClose(error, net);

            net.Dispose();
        }