示例#1
0
        internal void Remove(OuterEndPointMessage message)
        {
            if (!this.HCodeMapChannel.TryGetValue(message.GetHashCode(), out Network network))
            {
                return;
            }

            this.ClientConnectionNumbers.Remove(network.Channel.Id);
            this.HCodeMapChannel.Remove(message.GetHashCode());
            this.NetworkMapMessages.Remove(network.Channel.Id);
        }
示例#2
0
        internal void Add(Network network, OuterEndPointMessage message)
        {
            if (ClientConnectionNumbers.ContainsKey(network.Id))
            {
                return;
            }

            this.ClientConnectionNumbers[network.Id] = 0;
            this.ConnectEntities.Add(message);
            this.NetworkMapMessages[network.Id]         = message;
            this.HCodeMapChannel[message.GetHashCode()] = network;
        }