示例#1
0
        protected void ConnectionCompleteSink(Int32 ConnectionID)
        {
            if (ID_Table.ContainsKey((UInt32)ConnectionID) == false)
            {
                throw(new UPnPCustomException(802, ConnectionID.ToString() + " is not a valid ID"));
            }
            else
            {
                AVConnection c = (AVConnection)ID_Table[(UInt32)ConnectionID];
                ID_Table.Remove((UInt32)ConnectionID);

                if (OnClosedConnection != null)
                {
                    OnClosedConnection(this, c);
                }
                c.dispose();
            }
        }