81 references to PeerCloseReason
System.ServiceModel (81)
System\ServiceModel\Channels\ConnectAlgorithms.cs (1)
260
maintainer.CloseNeighbor(leastUseful,
PeerCloseReason
.NotUsefulNeighbor);
System\ServiceModel\Channels\IPeerNeighbor.cs (1)
23
void Abort(
PeerCloseReason
reason, PeerCloseInitiator initiator);
System\ServiceModel\Channels\PeerConnector.cs (33)
159
cleanupCallback(neighbor,
PeerCloseReason
.InternalFailure, e);
176
void CleanupOnConnectFailure(IPeerNeighbor neighbor,
PeerCloseReason
reason,
217
PeerCloseReason
closeReason, IList<Referral> referrals)
233
void OnConnectFailure(IPeerNeighbor neighbor,
PeerCloseReason
reason,
241
CleanupOnConnectFailure((IPeerNeighbor)asyncState,
PeerCloseReason
.ConnectTimedOut, null);
253
public void OnNeighborClosing(IPeerNeighbor neighbor,
PeerCloseReason
closeReason)
298
this.neighborManager.CloseNeighbor(neighbor,
PeerCloseReason
.NodeBusy,
325
PeerCloseReason
closeReason =
PeerCloseReason
.None;
334
closeReason =
PeerCloseReason
.InvalidNeighbor;
346
closeReason =
PeerCloseReason
.NodeBusy;
352
closeReason =
PeerCloseReason
.InvalidNeighbor;
357
PeerCloseReason
closeReason2;
393
if (closeReason !=
PeerCloseReason
.None)
407
PeerCloseReason
closeReason =
PeerCloseReason
.InvalidNeighbor;
418
closeReason = (
PeerCloseReason
)disconnectInfo.Reason;
436
PeerCloseReason
closeReason =
PeerCloseReason
.InvalidNeighbor;
452
closeReason = (
PeerCloseReason
)refuseInfo.Reason;
468
PeerCloseReason
closeReason =
PeerCloseReason
.None;
476
closeReason =
PeerCloseReason
.InvalidNeighbor;
485
PeerCloseReason
closeReason2;
514
closeReason =
PeerCloseReason
.InvalidNeighbor;
523
if (closeReason !=
PeerCloseReason
.None)
576
void SendTerminatingMessage(IPeerNeighbor neighbor, string action,
PeerCloseReason
closeReason)
580
if (this.state != State.Opened || closeReason ==
PeerCloseReason
.InvalidNeighbor)
628
out IPeerNeighbor neighborToClose, out
PeerCloseReason
closeReason, out string action)
631
closeReason =
PeerCloseReason
.None;
638
closeReason =
PeerCloseReason
.InvalidNeighbor;
644
closeReason =
PeerCloseReason
.DuplicateNodeId;
666
closeReason =
PeerCloseReason
.DuplicateNeighbor;
System\ServiceModel\Channels\PeerFlooder.cs (4)
80
peer.Abort(
PeerCloseReason
.NodeTooSlow, PeerCloseInitiator.LocalNode);
244
neighbor.Abort(
PeerCloseReason
.NodeTooSlow, PeerCloseInitiator.LocalNode);
489
neighborManager.CloseNeighbor(peer,
PeerCloseReason
.InternalFailure, PeerCloseInitiator.LocalNode, exception);
634
neighbor.Abort(
PeerCloseReason
.InvalidNeighbor, PeerCloseInitiator.LocalNode);
System\ServiceModel\Channels\PeerHelpers.cs (4)
315
public delegate void CleanupCallback(IPeerNeighbor neighbor,
PeerCloseReason
reason, Exception exception);
619
PeerCloseReason
reason;
621
public PeerNeighborCloseEventArgs(
PeerCloseReason
reason,
639
public
PeerCloseReason
Reason
System\ServiceModel\Channels\PeerMaintainer.cs (2)
37
void CloseNeighbor(IPeerNeighbor neighbor,
PeerCloseReason
closeReason);
579
void IPeerMaintainer.CloseNeighbor(IPeerNeighbor neighbor,
PeerCloseReason
closeReason)
System\ServiceModel\Channels\PeerNeighborManager.cs (22)
131
neighbor.Abort(
PeerCloseReason
.LeavingMesh, PeerCloseInitiator.LocalNode);
209
public void CloseNeighbor(IPeerNeighbor neighbor,
PeerCloseReason
closeReason,
215
public void CloseNeighbor(IPeerNeighbor neighbor,
PeerCloseReason
closeReason,
233
if (closeReason !=
PeerCloseReason
.InvalidNeighbor)
262
PeerNeighbor neighbor,
PeerCloseReason
closeReason,
316
peer.Abort(
PeerCloseReason
.InternalFailure, PeerCloseInitiator.LocalNode);
399
void InvokeAsyncNeighborClose(PeerNeighbor neighbor,
PeerCloseReason
closeReason,
453
InvokeAsyncNeighborClose((PeerNeighbor)result.AsyncState,
PeerCloseReason
.None,
725
CloseNeighbor(neighbor,
PeerCloseReason
.LeavingMesh, PeerCloseInitiator.LocalNode, null);
768
PeerCloseReason
closeReason;
794
this.closeReason =
PeerCloseReason
.None;
815
public
PeerCloseReason
CloseReason
971
public void Abort(
PeerCloseReason
reason, PeerCloseInitiator closeInit)
995
public IAsyncResult BeginClose(
PeerCloseReason
reason,
1143
OnChannelClosedOrFaulted(
PeerCloseReason
.Closed);
1151
void OnChannelClosedOrFaulted(
PeerCloseReason
reason)
1183
OnChannelClosedOrFaulted(
PeerCloseReason
.Faulted);
1334
case
PeerCloseReason
.InvalidNeighbor:
1335
case
PeerCloseReason
.DuplicateNodeId:
1339
case
PeerCloseReason
.ConnectTimedOut:
1340
case
PeerCloseReason
.InternalFailure:
1341
case
PeerCloseReason
.Faulted:
System\ServiceModel\Channels\PeerSecurityHelpers.cs (2)
803
neighbor.Abort(
PeerCloseReason
.AuthenticationFailure, PeerCloseInitiator.LocalNode);
943
neighbor.Abort(
PeerCloseReason
.AuthenticationFailure, PeerCloseInitiator.LocalNode);
System\ServiceModel\Channels\PeerSecurityManager.cs (2)
607
neighbor.Abort(
PeerCloseReason
.LeavingMesh, PeerCloseInitiator.LocalNode);
646
neighbor.Abort(
PeerCloseReason
.AuthenticationFailure, PeerCloseInitiator.LocalNode);
System\ServiceModel\Channels\PeerService.cs (1)
340
neighbor.Abort(
PeerCloseReason
.Faulted, PeerCloseInitiator.RemoteNode);
System\ServiceModel\Channels\PeerServiceMessageContracts.cs (9)
118
LeavingMesh =
PeerCloseReason
.LeavingMesh,
119
NotUsefulNeighbor =
PeerCloseReason
.NotUsefulNeighbor,
120
DuplicateNeighbor =
PeerCloseReason
.DuplicateNeighbor,
121
DuplicateNodeId =
PeerCloseReason
.DuplicateNodeId,
122
NodeBusy =
PeerCloseReason
.NodeBusy,
123
InternalFailure =
PeerCloseReason
.InternalFailure,
286
DuplicateNeighbor =
PeerCloseReason
.DuplicateNeighbor,
287
DuplicateNodeId =
PeerCloseReason
.DuplicateNodeId,
288
NodeBusy =
PeerCloseReason
.NodeBusy,