1 instantiation of Referral
System.ServiceModel (1)
System\ServiceModel\Channels\PeerMaintainer.cs (1)
454referrals[i] = new Referral(neighbors[i].NodeId, neighbors[i].ListenAddress);
37 references to Referral
System.ServiceModel (37)
System\ServiceModel\Channels\ConnectAlgorithms.cs (5)
31public void Initialize(IPeerMaintainer maintainer, PeerNodeConfig config, int wantedConnectionCount, Dictionary<EndpointAddress, Referral> referralCache) 279public void UpdateEndpointsCollection(ICollection<Referral> src) 285foreach (Referral referral in src) 366void OnReferralsAdded(IList<Referral> referrals, IPeerNeighbor neighbor) 371foreach (Referral referral in referrals)
System\ServiceModel\Channels\PeerConnector.cs (5)
217PeerCloseReason closeReason, IList<Referral> referrals) 408IList<Referral> referrals = null; 437IList<Referral> referrals = null; 588Referral[] referrals = maintainer.GetReferrals(); 617Referral[] referrals = maintainer.GetReferrals();
System\ServiceModel\Channels\PeerMaintainer.cs (12)
21delegate void ReferralsAddedHandler(IList<Referral> referrals, IPeerNeighbor neighbor); 47void Initialize(IPeerMaintainer maintainer, PeerNodeConfig config, int wantedConnectedNeighbors, Dictionary<EndpointAddress, Referral> referralCache); 61Dictionary<EndpointAddress, Referral> referralCache; 83referralCache = new Dictionary<EndpointAddress, Referral>(); 91public bool AddReferrals(IList<Referral> referrals, IPeerNeighbor neighbor) 108foreach (Referral referral in referrals) 124foreach (Referral referral in referrals) 379connectAlgorithm.Initialize(this, config, neighborManager.ConnectedNeighborCount + 1, new Dictionary<EndpointAddress, Referral>()); 431public Referral[] GetReferrals() 435Referral[] referrals = null; 451referrals = new Referral[count]; 459referrals = new Referral[0];
System\ServiceModel\Channels\PeerServiceMessageContracts.cs (15)
72public Referral[] referrals; 76public DisconnectInfoDC(DisconnectReason reason, Referral[] referrals) 91public DisconnectInfo(DisconnectReason reason, Referral[] referrals) 101public IList<Referral> Referrals 105return this.body.referrals != null ? Array.AsReadOnly<Referral>(this.body.referrals) : null; 244public Referral[] referrals; 247public RefuseInfoDC(RefuseReason reason, Referral[] referrals) 259public RefuseInfo(RefuseReason reason, Referral[] referrals) 272public IList<Referral> Referrals 274get { return this.body.referrals != null ? Array.AsReadOnly<Referral>(this.body.referrals) : null; } 351public Referral[] referrals; 354public WelcomeInfoDC(ulong nodeId, Referral[] referrals) 365public WelcomeInfo(ulong nodeId, Referral[] referrals) 378public IList<Referral> Referrals 380get { return this.body.referrals != null ? Array.AsReadOnly<Referral>(this.body.referrals) : null; }