1 write to _window
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
91
_window
= new SlidingWindow(maxWindowSize);
42 references to _window
System.ServiceModel.Primitives (42)
System\ServiceModel\Channels\TransmissionStrategy.cs (42)
112
return (
_window
.Count > 0 || _waitQueue.Count > 0);
172
_window
.Close();
198
sequenceNumber = _windowStart +
_window
.Count;
201
if (_requestAcks && (
_window
.Count == _windowSize - 1 || QuotaRemaining == 1)) // can't add any more
207
if (
_window
.Count == 0)
212
_window
.Add(message, Now, state);
218
attemptInfo = new MessageAttemptInfo(
_window
.GetMessage(index), sequenceNumber, 0, state);
225
return (
_window
.Count < _windowSize && // Does the message fit in the transmission window?
246
_window
.Close();
259
int count = Math.Min(_windowSize, QuotaRemaining) -
_window
.Count;
294
if (_closed ||
_window
.Count == 0)
297
_window
.RecordRetry(0, Now);
305
attemptInfo = new MessageAttemptInfo(
_window
.GetMessage(0), _windowStart,
_window
.GetRetryCount(0),
_window
.GetState(0));
314
if (!_closed && (
_window
.Count > 0))
345
_window
.Close();
380
if (
_window
.GetTransferred(index))
383
return new MessageAttemptInfo(
_window
.GetMessage(index), next,
_window
.GetRetryCount(index),
_window
.GetState(index));
406
Last = _windowStart +
_window
.Count - 1;
453
if ((_windowStart == 1) && (
_window
.Count == 0))
482
long lastMessageSent = _windowStart +
_window
.Count - 1;
484
int transferredInWindow =
_window
.TransferredCount;
512
int endIndex = (int)((range.Upper > lastMessageSent) ? (
_window
.Count - 1) : (range.Upper - _windowStart));
514
newAck =
_window
.GetTransferredInRangeCount(beginIndex, endIndex) < (endIndex - beginIndex + 1);
520
int endIndex = (int)((range.Upper > lastMessageSent) ? (
_window
.Count - 1) : (range.Upper - _windowStart));
522
transferredInWindow -=
_window
.GetTransferredInRangeCount(beginIndex, endIndex);
592
QuotaRemaining = quotaRemaining - Math.Min(_windowSize,
_window
.Count);
610
for (int i = 1; i <
_window
.Count; i++)
612
if (
_window
.GetTransferred(i))
627
UpdateStats(now,
_window
.GetLastAttemptTime(i));
631
int inFlightAfterAck = Math.Min(_windowSize,
_window
.Count) - (int)slide;
635
_window
.Remove((int)slide);
667
int sendEndIndex = Math.Min(_windowSize,
_window
.Count);
673
for (int i = sendBeginIndex; i < _windowSize && i <
_window
.Count; i++)
677
if (!
_window
.GetTransferred(i) && !_retransmissionWindow.Contains(sequenceNumber))
679
_window
.RecordRetry(i, Now);
685
if (
_window
.Count > 0)
696
_window
.SetTransferred((int)(i - _windowStart));
726
if (_windowStart +
_window
.Count + _waitQueue.Count == long.MaxValue)