1 implementation of State
System.ServiceModel (1)
System\ServiceModel\Channels\PeerNeighborManager.cs (1)
945
public PeerNeighborState
State
33 references to State
System.ServiceModel (33)
System\ServiceModel\Channels\PeerConnector.cs (22)
123
if (state == State.Opened && neighbor.
State
== PeerNeighborState.Connecting)
224
if (!(neighbor.
State
>= PeerNeighborState.Disconnected))
268
if (!(PeerNeighborStateHelper.IsAuthenticatedOrClosed(neighbor.
State
)))
270
throw Fx.AssertAndThrow(string.Format(CultureInfo.InvariantCulture, "Neighbor state expected to be Authenticated or Closed, actual state: {0}", neighbor.
State
));
277
if (!(neighbor.
State
>= PeerNeighborState.Faulted))
279
throw Fx.AssertAndThrow(string.Format(CultureInfo.InvariantCulture, "Neighbor state expected to be Faulted or Closed, actual state: {0}", neighbor.
State
));
331
if (neighbor.IsInitiator || !connectInfo.HasBody() || (neighbor.
State
!= PeerNeighborState.Connecting &&
332
neighbor.
State
!= PeerNeighborState.Closed))
375
if (!(neighbor.
State
>= PeerNeighborState.Disconnecting))
377
throw Fx.AssertAndThrow("Neighbor state expected to be >= Disconnecting; it is " + neighbor.
State
.ToString());
414
if (neighbor.
State
>= PeerNeighborState.Connected)
444
if (neighbor.IsInitiator && (neighbor.
State
== PeerNeighborState.Connecting ||
445
neighbor.
State
== PeerNeighborState.Closed))
473
if (!neighbor.IsInitiator || !welcomeInfo.HasBody() || (neighbor.
State
!= PeerNeighborState.Connecting &&
474
neighbor.
State
!= PeerNeighborState.Closed))
498
if (!(neighbor.
State
>= PeerNeighborState.Faulted))
500
throw Fx.AssertAndThrow("Neighbor state expected to be >= Faulted; it is " + neighbor.
State
.ToString());
560
if (neighbor.
State
== PeerNeighborState.Connecting && this.state == State.Opened)
605
if (!(neighbor.
State
>= PeerNeighborState.Disconnecting))
607
throw Fx.AssertAndThrow("Neighbor state expected to be >= Disconnecting; it is " + neighbor.
State
.ToString());
689
if (neighborToClose.
State
== PeerNeighborState.Connected)
694
neighborToClose.
State
== PeerNeighborState.Connecting)
System\ServiceModel\Channels\PeerFlooder.cs (3)
263
if (PeerNeighborStateHelper.IsConnected(neighbor.
State
))
272
if (PeerNeighborStateHelper.IsConnected(neighbor.
State
))
632
if (!PeerNeighborStateHelper.IsConnected(neighbor.
State
))
System\ServiceModel\Channels\PeerSecurityHelpers.cs (3)
737
if (host.
State
< PeerNeighborState.Authenticated)
750
if (neighbor.
State
< PeerNeighborState.Authenticated)
821
if (this.state != PeerAuthState.Created || neighbor == null || neighbor.IsInitiator || neighbor.
State
!= PeerNeighborState.Opened)
System\ServiceModel\Channels\PeerService.cs (2)
149
if (neighbor == null || neighbor.
State
== PeerNeighborState.Closed)
163
PeerNeighborState state = neighbor.
State
;
System\ServiceModel\Channels\UtilityExtension.cs (3)
128
if (neighbor.
State
>= PeerNeighborState.Disconnecting)
268
if (host == null || !PeerNeighborStateHelper.IsConnected(host.
State
) || total == 0)
308
if (host == null || !PeerNeighborStateHelper.IsConnected(host.
State
))