27 references to Count
System.ServiceModel.Primitives (27)
System\ServiceModel\Channels\TransmissionStrategy.cs (27)
112return (_window.Count > 0 || _waitQueue.Count > 0); 198sequenceNumber = _windowStart + _window.Count; 201if (_requestAcks && (_window.Count == _windowSize - 1 || QuotaRemaining == 1)) // can't add any more 207if (_window.Count == 0) 225return (_window.Count < _windowSize && // Does the message fit in the transmission window? 259int count = Math.Min(_windowSize, QuotaRemaining) - _window.Count; 294if (_closed || _window.Count == 0) 314if (!_closed && (_window.Count > 0)) 406Last = _windowStart + _window.Count - 1; 453if ((_windowStart == 1) && (_window.Count == 0)) 482long lastMessageSent = _windowStart + _window.Count - 1; 512int endIndex = (int)((range.Upper > lastMessageSent) ? (_window.Count - 1) : (range.Upper - _windowStart)); 520int endIndex = (int)((range.Upper > lastMessageSent) ? (_window.Count - 1) : (range.Upper - _windowStart)); 592QuotaRemaining = quotaRemaining - Math.Min(_windowSize, _window.Count); 610for (int i = 1; i < _window.Count; i++) 631int inFlightAfterAck = Math.Min(_windowSize, _window.Count) - (int)slide; 667int sendEndIndex = Math.Min(_windowSize, _window.Count); 673for (int i = sendBeginIndex; i < _windowSize && i < _window.Count; i++) 685if (_window.Count > 0) 726if (_windowStart + _window.Count + _waitQueue.Count == long.MaxValue) 853if (Count == 0) 856return GetTransferredInRangeCount(0, Count - 1); 862if (Count >= (_maxSize - 1)) 873if (index >= Count) 886Remove(Count); 929if (endIndex >= Count) 960if (count > Count)