1 write to config
System.ServiceModel (1)
System\ServiceModel\Channels\PeerMaintainer.cs (1)
80
this.
config
= config;
33 references to config
System.ServiceModel (33)
System\ServiceModel\Channels\PeerMaintainer.cs (33)
93
Fx.Assert(null !=
config
.Resolver, "");
99
canShareReferrals =
config
.Resolver.CanShareReferrals;
127
if (referralCache.Count <= this.
config
.MaxReferralCacheSize && !referralCache.ContainsKey(key))
182
PeerMaintainerTraceRecord record = new PeerMaintainerTraceRecord(SR.GetString(SR.PeerMaintainerInitialConnect, this.
config
.MeshId));
187
TimeoutHelper timeoutHelper = new TimeoutHelper(
config
.MaintainerTimeout);
197
connectAlgorithm.Initialize(this,
config
,
config
.MinNeighbors, referralCache);
227
maintainerTimer.Set(
config
.MaintainerRetryInterval);
231
maintainerTimer.Set(
config
.MaintainerInterval);
277
PeerMaintainerTraceRecord record = new PeerMaintainerTraceRecord(SR.GetString(SR.PeerMaintainerStarting, this.
config
.MeshId));
282
TimeoutHelper timeoutHelper = new TimeoutHelper(
config
.MaintainerTimeout);
288
if (currentlyConnected !=
config
.IdealNeighbors) // Already at ideal no work to do
292
connectAlgorithm.Initialize(this,
config
,
config
.IdealNeighbors, referralCache);
293
if (currentlyConnected >
config
.IdealNeighbors)
297
PeerMaintainerTraceRecord record = new PeerMaintainerTraceRecord(SR.GetString(SR.PeerMaintainerPruneMode, this.
config
.MeshId));
307
if (currentlyConnected <
config
.IdealNeighbors)
316
PeerMaintainerTraceRecord record = new PeerMaintainerTraceRecord(SR.GetString(SR.PeerMaintainerConnectMode, this.
config
.MeshId));
372
TimeoutHelper timeoutHelper = new TimeoutHelper(
config
.MaintainerTimeout);
379
connectAlgorithm.Initialize(this,
config
, neighborManager.ConnectedNeighborCount + 1, new Dictionary<EndpointAddress, Referral>());
408
maintainerTimer.Set(
config
.MaintainerInterval); // No reconnect until after connect has succeeded
433
Fx.Assert(null !=
config
.Resolver, "");
439
canShareReferrals =
config
.Resolver.CanShareReferrals;
450
int count = Math.Min(this.
config
.MaxReferrals, neighbors.Count);
476
if (isOpen && !isRunningMaintenance && neighborManager.ConnectedNeighborCount <
config
.MinNeighbors)
502
traceRecord = new PeerNodeTraceRecord(
config
.NodeId);
523
PeerNodeAddress lclNodeAddress =
config
.GetListenAddress(true);
536
for (int i = 0; i < nresolves && reply.Count <
config
.MaxResolveAddresses && isOpen && timeoutHelper.RemainingTime() > TimeSpan.Zero; i++)
541
addresses =
config
.Resolver.Resolve(
config
.MeshId,
config
.MaxResolveAddresses, timeoutHelper.RemainingTime());
591
return
config
.GetListenAddress(true);
653
if (this.neighborManager.ConnectedNeighborCount < this.
config
.IdealNeighbors)