Exemplo n.º 1
0
        public void Add(Http2Stream item)
        {
            if (item.IsFlowControlEnabled)
            {
                FlowControlledStreams.Add(item.Id, item);
                return;
            }

            NonFlowControlledStreams.Add(item.Id, item);
        }
Exemplo n.º 2
0
        public void Add(Http2Stream item)
        {
            if (ContainsKey(item.Id))
            {
                throw new ArgumentException("This key already exists in the collection");
            }

            if (item.IsFlowControlEnabled)
            {
                FlowControlledStreams.Add(item.Id, item);
                return;
            }

            NonFlowControlledStreams.Add(item.Id, item);
        }