1 write to maintainer
System.ServiceModel (1)
System\ServiceModel\Channels\ConnectAlgorithms.cs (1)
33
this.
maintainer
= maintainer;
22 references to maintainer
System.ServiceModel (22)
System\ServiceModel\Channels\ConnectAlgorithms.cs (22)
61
|| (((nodeAddresses.Count != 0 || pendingConnectedNeighbor.Count != 0) &&
maintainer
.IsOpen)
62
&&
maintainer
.ConnectedNeighborCount < wantedConnectionCount))
93
if (pendingConnectedNeighbor.Count +
maintainer
.ConnectedNeighborCount < wantedConnectionCount)
98
if (nodeAddresses.Count == 0 || !
maintainer
.IsOpen) // nodeAddresses or maintainer is closed got updated better cycle
120
if (
maintainer
.FindDuplicateNeighbor(epr) == null
135
if (
maintainer
.IsOpen)
143
IAsyncResult iar =
maintainer
.BeginOpenNeighbor(epr, timeoutHelper.RemainingTime(), null, epr);
170
if (nodeAddresses.Count == 0 || pendingConnectedNeighbor.Count +
maintainer
.ConnectedNeighborCount == wantedConnectionCount)
184
neighbor =
maintainer
.EndOpenNeighbor(iar);
231
maintainer
.ReferralsAdded -= OnReferralsAdded;
232
maintainer
.MaintainerClosed -= OnMaintainerClosed;
233
maintainer
.NeighborClosed -= OnNeighborClosed;
234
maintainer
.NeighborConnected -= OnNeighborConnected;
255
while (
maintainer
.NonClosingNeighborCount > config.IdealNeighbors &&
maintainer
.IsOpen)
257
IPeerNeighbor leastUseful =
maintainer
.GetLeastUsefulNeighbor();
260
maintainer
.CloseNeighbor(leastUseful, PeerCloseReason.NotUsefulNeighbor);
299
if (!nodeAddresses.ContainsKey(key) && key != GetEndpointUri(
maintainer
.GetListenAddress()))
379
if (!
maintainer
.IsOpen)
383
if (key != GetEndpointUri(
maintainer
.GetListenAddress())) // make sure the referral is not mine
387
&&
maintainer
.FindDuplicateNeighbor(referral.Address) == null)
400
if (
maintainer
.ConnectedNeighborCount < wantedConnectionCount)