77 references to PeerNeighborState
System.ServiceModel (77)
System\ServiceModel\Channels\IPeerNeighbor.cs (14)
16
PeerNeighborState
State { get; set; }
22
bool TrySetState(
PeerNeighborState
state);
48
public static bool IsSettable(
PeerNeighborState
state)
51
(state ==
PeerNeighborState
.Authenticated) ||
52
(state ==
PeerNeighborState
.Connecting) ||
53
(state ==
PeerNeighborState
.Connected) ||
54
(state ==
PeerNeighborState
.Disconnecting) ||
55
(state ==
PeerNeighborState
.Disconnected));
59
public static bool IsConnected(
PeerNeighborState
state)
61
return ((state ==
PeerNeighborState
.Connected));
65
public static bool IsAuthenticatedOrClosed(
PeerNeighborState
state)
67
return ((state ==
PeerNeighborState
.Authenticated) ||
68
(state ==
PeerNeighborState
.Faulted) ||
69
(state ==
PeerNeighborState
.Closed));
System\ServiceModel\Channels\PeerConnector.cs (21)
123
if (state == State.Opened && neighbor.State ==
PeerNeighborState
.Connecting)
221
if (neighbor.TrySetState(
PeerNeighborState
.Disconnected))
224
if (!(neighbor.State >=
PeerNeighborState
.Disconnected))
275
if (!neighbor.TrySetState(
PeerNeighborState
.Connecting))
277
if (!(neighbor.State >=
PeerNeighborState
.Faulted))
331
if (neighbor.IsInitiator || !connectInfo.HasBody() || (neighbor.State !=
PeerNeighborState
.Connecting &&
332
neighbor.State !=
PeerNeighborState
.Closed))
374
if (!neighbor.TrySetState(
PeerNeighborState
.Connected))
375
if (!(neighbor.State >=
PeerNeighborState
.Disconnecting))
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))
496
if (!neighbor.TrySetState(
PeerNeighborState
.Connected))
498
if (!(neighbor.State >=
PeerNeighborState
.Faulted))
560
if (neighbor.State ==
PeerNeighborState
.Connecting && this.state == State.Opened)
585
if (neighbor.TrySetState(
PeerNeighborState
.Disconnecting))
605
if (!(neighbor.State >=
PeerNeighborState
.Disconnecting))
689
if (neighborToClose.State ==
PeerNeighborState
.Connected)
694
neighborToClose.State ==
PeerNeighborState
.Connecting)
System\ServiceModel\Channels\PeerNeighborManager.cs (32)
293
neighbor.State <
PeerNeighborState
.Disconnecting)
352
neighbor.State <
PeerNeighborState
.Disconnecting)
531
if (!(neighbor.State ==
PeerNeighborState
.Opened))
779
PeerNeighborState
state; // Current state of the neighbor
797
this.state =
PeerNeighborState
.Created;
945
public
PeerNeighborState
State
1142
if (this.state <
PeerNeighborState
.Closed)
1153
PeerNeighborState
oldState;
1161
this.state =
PeerNeighborState
.Closed;
1175
OnStateChanged(
PeerNeighborState
.Closed);
1197
SetState(
PeerNeighborState
.Opened, SetStateBehavior.TrySet);
1204
void OnStateChanged(
PeerNeighborState
newState)
1209
case
PeerNeighborState
.Opened:
1212
case
PeerNeighborState
.Closed:
1215
case
PeerNeighborState
.Connected:
1218
case
PeerNeighborState
.Disconnecting:
1221
case
PeerNeighborState
.Disconnected:
1240
this.state =
PeerNeighborState
.Created; // reset state if the previous proxy failed
1248
bool SetState(
PeerNeighborState
newState, SetStateBehavior behavior)
1251
PeerNeighborState
oldState;
1288
public bool TrySetState(
PeerNeighborState
newState)
1299
if (this.state ==
PeerNeighborState
.Closed)
1310
void ThrowIfInvalidState(
PeerNeighborState
newState)
1312
if (this.state ==
PeerNeighborState
.Closed)
1325
public void TraceClosedEvent(
PeerNeighborState
previousState)
1349
PeerNeighborState
.Closed.ToString(), previousState.ToString(), null,
1360
PeerNeighborState
nbrState = this.state;
1366
PeerNeighborState
nbrState = this.state;
1371
string action,
PeerNeighborState
nbrState,
PeerNeighborState
previousOrAttemptedState)
1380
if (nbrState >=
PeerNeighborState
.Opened && nbrState <=
PeerNeighborState
.Connected)
System\ServiceModel\Channels\PeerSecurityHelpers.cs (4)
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)
884
neighbor.TrySetState(
PeerNeighborState
.Authenticated);
System\ServiceModel\Channels\PeerSecurityManager.cs (1)
623
neighbor.TrySetState(
PeerNeighborState
.Authenticated);
System\ServiceModel\Channels\PeerService.cs (4)
149
if (neighbor == null || neighbor.State ==
PeerNeighborState
.Closed)
163
PeerNeighborState
state = neighbor.State;
168
if (state >=
PeerNeighborState
.Opened && state <=
PeerNeighborState
.Connected)
System\ServiceModel\Channels\UtilityExtension.cs (1)
128
if (neighbor.State >=
PeerNeighborState
.Disconnecting)