1 write to window
System.ServiceModel (1)
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
105
this.
window
= new SlidingWindow(maxWindowSize);
42 references to window
System.ServiceModel (42)
System\ServiceModel\Channels\TransmissionStrategy.cs (42)
126
return (this.
window
.Count > 0 || this.waitQueue.Count > 0);
204
window
.Close();
231
sequenceNumber = this.windowStart + this.
window
.Count;
234
if (this.requestAcks && (this.
window
.Count == this.windowSize - 1 || this.quotaRemaining == 1)) // can't add any more
240
if (this.
window
.Count == 0)
245
this.
window
.Add(message, Now, state);
251
attemptInfo = new MessageAttemptInfo(this.
window
.GetMessage(index), sequenceNumber, 0, state);
273
return (this.
window
.Count < this.windowSize && // Does the message fit in the transmission window?
294
window
.Close();
307
int count = Math.Min(this.windowSize, this.quotaRemaining) - this.
window
.Count;
354
if (this.
window
.Count == 0)
357
this.
window
.RecordRetry(0, Now);
365
attemptInfo = new MessageAttemptInfo(this.
window
.GetMessage(0), this.windowStart, this.
window
.GetRetryCount(0), this.
window
.GetState(0));
372
if (!this.closed && (this.
window
.Count > 0))
402
window
.Close();
437
if (this.
window
.GetTransferred(index))
440
return new MessageAttemptInfo(this.
window
.GetMessage(index), next, this.
window
.GetRetryCount(index), this.
window
.GetState(index));
463
this.last = this.windowStart + this.
window
.Count - 1;
558
if ((this.windowStart == 1) && (this.
window
.Count == 0))
587
Int64 lastMessageSent = this.windowStart + this.
window
.Count - 1;
589
int transferredInWindow = this.
window
.TransferredCount;
617
int endIndex = (int)((range.Upper > lastMessageSent) ? (this.
window
.Count - 1) : (range.Upper - this.windowStart));
619
newAck = this.
window
.GetTransferredInRangeCount(beginIndex, endIndex) < (endIndex - beginIndex + 1);
625
int endIndex = (int)((range.Upper > lastMessageSent) ? (this.
window
.Count - 1) : (range.Upper - this.windowStart));
627
transferredInWindow -= this.
window
.GetTransferredInRangeCount(beginIndex, endIndex);
697
this.quotaRemaining = quotaRemaining - Math.Min(this.windowSize, this.
window
.Count);
715
for (int i = 1; i < this.
window
.Count; i++)
717
if (this.
window
.GetTransferred(i))
732
UpdateStats(now, this.
window
.GetLastAttemptTime(i));
736
int inFlightAfterAck = Math.Min(this.windowSize, this.
window
.Count) - (int)slide;
740
this.
window
.Remove((int)slide);
772
int sendEndIndex = Math.Min(this.windowSize, this.
window
.Count);
778
for (int i = sendBeginIndex; i < this.windowSize && i < this.
window
.Count; i++)
782
if (!this.
window
.GetTransferred(i) && !this.retransmissionWindow.Contains(sequenceNumber))
784
this.
window
.RecordRetry(i, Now);
790
if (
window
.Count > 0)
801
this.
window
.SetTransferred((int)(i - this.windowStart));
831
if (this.windowStart + this.
window
.Count + this.waitQueue.Count == Int64.MaxValue)