47 references to UpgradeState
System.ServiceModel (47)
System\ServiceModel\Channels\SingletonConnectionReader.cs (47)
320
UpgradeState
upgradeState =
UpgradeState
.None;
378
return this.upgradeState ==
UpgradeState
.None
379
|| this.upgradeState ==
UpgradeState
.UpgradeComplete;
434
Fx.AssertAndThrow(this.upgradeState ==
UpgradeState
.EndUpgrade, "upgradeAsyncResult should only be passed in from OnUpgradeComplete callback");
469
case
UpgradeState
.None:
471
ChangeUpgradeState(
UpgradeState
.VerifyingUpgradeRequest);
473
case
UpgradeState
.VerifyingUpgradeRequest:
487
ChangeUpgradeState(
UpgradeState
.WritingUpgradeAck);
502
ChangeUpgradeState(
UpgradeState
.UpgradeAckSent);
504
case
UpgradeState
.UpgradeAckSent:
510
ChangeUpgradeState(
UpgradeState
.BeginUpgrade);
512
case
UpgradeState
.BeginUpgrade:
521
ChangeUpgradeState(
UpgradeState
.EndUpgrade);
532
case
UpgradeState
.EndUpgrade://Must be a different state here than UpgradeComplete so that we don't try to read from the connection
536
ChangeUpgradeState(
UpgradeState
.UpgradeComplete);
547
case
UpgradeState
.UpgradeComplete:
549
ChangeUpgradeState(
UpgradeState
.VerifyingUpgradeRequest);
556
if (this.upgradeState ==
UpgradeState
.UpgradeComplete //We have done at least one upgrade, but we are now done.
557
|| this.upgradeState ==
UpgradeState
.None)//no upgrade, just send the preample end bytes
559
ChangeUpgradeState(
UpgradeState
.WritingPreambleEnd);
575
ChangeUpgradeState(
UpgradeState
.PreambleEndSent);
619
void ChangeUpgradeState(
UpgradeState
newState)
623
case
UpgradeState
.None:
625
case
UpgradeState
.VerifyingUpgradeRequest:
626
if (this.upgradeState !=
UpgradeState
.None //starting first upgrade
627
&& this.upgradeState !=
UpgradeState
.UpgradeComplete)//completing one upgrade and starting another
632
case
UpgradeState
.WritingUpgradeAck:
633
if (this.upgradeState !=
UpgradeState
.VerifyingUpgradeRequest)
638
case
UpgradeState
.UpgradeAckSent:
639
if (this.upgradeState !=
UpgradeState
.WritingUpgradeAck)
644
case
UpgradeState
.BeginUpgrade:
645
if (this.upgradeState !=
UpgradeState
.UpgradeAckSent)
650
case
UpgradeState
.EndUpgrade:
651
if (this.upgradeState !=
UpgradeState
.BeginUpgrade)
656
case
UpgradeState
.UpgradeComplete:
657
if (this.upgradeState !=
UpgradeState
.EndUpgrade)
662
case
UpgradeState
.WritingPreambleEnd:
663
if (this.upgradeState !=
UpgradeState
.None //no upgrade being used
664
&& this.upgradeState !=
UpgradeState
.UpgradeComplete)//upgrades are now complete, end the preamble handshake.
669
case
UpgradeState
.PreambleEndSent:
670
if (this.upgradeState !=
UpgradeState
.WritingPreambleEnd)
727
case
UpgradeState
.WritingUpgradeAck:
728
thisPtr.ChangeUpgradeState(
UpgradeState
.UpgradeAckSent);
730
case
UpgradeState
.WritingPreambleEnd:
731
thisPtr.ChangeUpgradeState(
UpgradeState
.PreambleEndSent);
772
thisPtr.ChangeUpgradeState(
UpgradeState
.EndUpgrade);