1 implementation of IPeerNeighbor
System.ServiceModel (1)
System\ServiceModel\Channels\PeerNeighborManager.cs (1)
753
class PeerNeighbor :
IPeerNeighbor
, IInputSessionShutdown
158 references to IPeerNeighbor
System.ServiceModel (158)
System\ServiceModel\Channels\ConnectAlgorithms.cs (5)
180
IPeerNeighbor
neighbor = null;
257
IPeerNeighbor
leastUseful = maintainer.GetLeastUsefulNeighbor();
307
void OnNeighborClosed(
IPeerNeighbor
neighbor)
331
void OnNeighborConnected(
IPeerNeighbor
neighbor)
366
void OnReferralsAdded(IList<Referral> referrals,
IPeerNeighbor
neighbor)
System\ServiceModel\Channels\IPeerNeighbor.cs (1)
10
interface IPeerNeighbor : IExtensibleObject<
IPeerNeighbor
>
System\ServiceModel\Channels\PeerConnector.cs (25)
38
Dictionary<
IPeerNeighbor
, IOThreadTimer> timerTable;
54
this.timerTable = new Dictionary<
IPeerNeighbor
, IOThreadTimer>();
117
bool AddTimer(
IPeerNeighbor
neighbor)
136
void SendMessageToNeighbor(
IPeerNeighbor
neighbor, Message message, PeerMessageHelpers.CleanupCallback cleanupCallback)
176
void CleanupOnConnectFailure(
IPeerNeighbor
neighbor, PeerCloseReason reason,
189
Dictionary<
IPeerNeighbor
, IOThreadTimer> table;
216
void CompleteTerminateMessageProcessing(
IPeerNeighbor
neighbor,
233
void OnConnectFailure(
IPeerNeighbor
neighbor, PeerCloseReason reason,
241
CleanupOnConnectFailure((
IPeerNeighbor
)asyncState, PeerCloseReason.ConnectTimedOut, null);
245
public void OnNeighborClosed(
IPeerNeighbor
neighbor)
253
public void OnNeighborClosing(
IPeerNeighbor
neighbor, PeerCloseReason closeReason)
261
public void OnNeighborAuthenticated(
IPeerNeighbor
neighbor)
319
public void Connect(
IPeerNeighbor
neighbor, ConnectInfo connectInfo)
358
IPeerNeighbor
neighborToClose;
401
public void Disconnect(
IPeerNeighbor
neighbor, DisconnectInfo disconnectInfo)
430
public void Refuse(
IPeerNeighbor
neighbor, RefuseInfo refuseInfo)
462
public void Welcome(
IPeerNeighbor
neighbor, WelcomeInfo welcomeInfo)
486
IPeerNeighbor
neighborToClose;
530
bool RemoveTimer(
IPeerNeighbor
neighbor)
557
void SendConnect(
IPeerNeighbor
neighbor)
576
void SendTerminatingMessage(
IPeerNeighbor
neighbor, string action, PeerCloseReason closeReason)
611
void SendWelcome(
IPeerNeighbor
neighbor)
627
void ValidateNeighbor(
IPeerNeighbor
neighbor, ulong neighborNodeId,
628
out
IPeerNeighbor
neighborToClose, out PeerCloseReason closeReason, out string action)
661
IPeerNeighbor
duplicateNeighbor =
System\ServiceModel\Channels\PeerFlooder.cs (22)
41
protected List<
IPeerNeighbor
> neighbors;
57
this.neighbors = new List<
IPeerNeighbor
>();
64
void PruneNeighborCallback(
IPeerNeighbor
peer)
103
IPeerNeighbor
peer = this.neighborManager.SlowestNeighbor();
160
protected virtual IAsyncResult BeginFloodReceivedMessage(
IPeerNeighbor
sender, MessageBuffer messageBuffer,
195
protected IAsyncResult BeginSendHelper(
IPeerNeighbor
neighbor, TimeSpan timeout, Message message, FloodAsyncResult fresult)
242
IPeerNeighbor
neighbor = this.neighborManager.SlowestNeighbor();
250
int index, MessageHeader hopHeader,
IPeerNeighbor
except,
256
List<
IPeerNeighbor
> neighbors = this.Neighbors;
258
foreach (
IPeerNeighbor
neighbor in neighbors)
297
public virtual void OnNeighborConnected(
IPeerNeighbor
neighbor)
302
public virtual void OnNeighborClosed(
IPeerNeighbor
neighbor)
307
public abstract void ProcessLinkUtility(
IPeerNeighbor
neighbor, TLinkContract utilityInfo);
347
public virtual IAsyncResult OnFloodedMessage(
IPeerNeighbor
neighbor, TFloodContract floodInfo, AsyncCallback callback, object state)
468
protected List<
IPeerNeighbor
> Neighbors
474
static internal Exception CloseNeighborIfKnownException(PeerNeighborManager neighborManager, Exception exception,
IPeerNeighbor
peer)
619
public override IAsyncResult OnFloodedMessage(
IPeerNeighbor
neighbor, Message floodInfo, AsyncCallback callback, object state)
630
public override void ProcessLinkUtility(
IPeerNeighbor
neighbor, UtilityInfo utilityInfo)
829
Dictionary<IAsyncResult,
IPeerNeighbor
> results = new Dictionary<IAsyncResult,
IPeerNeighbor
>();
852
public void AddResult(IAsyncResult result,
IPeerNeighbor
neighbor)
949
IPeerNeighbor
neighbor = null;
System\ServiceModel\Channels\PeerHelpers.cs (1)
315
public delegate void CleanupCallback(
IPeerNeighbor
neighbor, PeerCloseReason reason, Exception exception);
System\ServiceModel\Channels\PeerMaintainer.cs (17)
18
delegate void NeighborClosedHandler(
IPeerNeighbor
neighbor);
19
delegate void NeighborConnectedHandler(
IPeerNeighbor
neighbor);
21
delegate void ReferralsAddedHandler(IList<Referral> referrals,
IPeerNeighbor
neighbor);
35
IPeerNeighbor
EndOpenNeighbor(IAsyncResult result);
37
void CloseNeighbor(
IPeerNeighbor
neighbor, PeerCloseReason closeReason);
39
IPeerNeighbor
FindDuplicateNeighbor(PeerNodeAddress address);
41
IPeerNeighbor
GetLeastUsefulNeighbor();
91
public bool AddReferrals(IList<Referral> referrals,
IPeerNeighbor
neighbor)
449
List<
IPeerNeighbor
> neighbors = this.neighborManager.GetConnectedNeighbors();
465
public virtual void OnNeighborClosed(
IPeerNeighbor
neighbor)
490
public virtual void OnNeighborConnected(
IPeerNeighbor
neighbor)
579
void IPeerMaintainer.CloseNeighbor(
IPeerNeighbor
neighbor, PeerCloseReason closeReason)
584
IPeerNeighbor
IPeerMaintainer.FindDuplicateNeighbor(PeerNodeAddress address)
594
IPeerNeighbor
IPeerMaintainer.GetLeastUsefulNeighbor()
596
IPeerNeighbor
leastUsefulNeighbor = null;
599
foreach (
IPeerNeighbor
neighbor in this.neighborManager.GetConnectedNeighbors())
625
IPeerNeighbor
IPeerMaintainer.EndOpenNeighbor(IAsyncResult result)
System\ServiceModel\Channels\PeerNeighborManager.cs (26)
47
List<
IPeerNeighbor
> connectedNeighborList;
69
this.connectedNeighborList = new List<
IPeerNeighbor
>();
209
public void CloseNeighbor(
IPeerNeighbor
neighbor, PeerCloseReason closeReason,
215
public void CloseNeighbor(
IPeerNeighbor
neighbor, PeerCloseReason closeReason,
244
public
IPeerNeighbor
EndOpenNeighbor(IAsyncResult result)
274
public
IPeerNeighbor
FindDuplicateNeighbor(ulong nodeId)
280
public
IPeerNeighbor
FindDuplicateNeighbor(ulong nodeId,
IPeerNeighbor
skipNeighbor)
304
public bool PingNeighbor(
IPeerNeighbor
peer)
325
List<
IPeerNeighbor
> neighbors = GetConnectedNeighbors();
326
foreach (
IPeerNeighbor
neighbor in neighbors)
333
public
IPeerNeighbor
FindDuplicateNeighbor(PeerNodeAddress address)
339
public
IPeerNeighbor
FindDuplicateNeighbor(PeerNodeAddress address,
IPeerNeighbor
skipNeighbor)
363
public List<
IPeerNeighbor
> GetConnectedNeighbors()
367
return new List<
IPeerNeighbor
>(this.connectedNeighborList);
373
public
IPeerNeighbor
GetNeighborFromProxy(IPeerProxy proxy)
469
this.connectedNeighborList.Remove((
IPeerNeighbor
)source);
772
ExtensionCollection<
IPeerNeighbor
> extensions;
798
this.extensions = new ExtensionCollection<
IPeerNeighbor
>(this, thisLock);
841
public IExtensionCollection<
IPeerNeighbor
> Extensions
1666
public static
IPeerNeighbor
End(IAsyncResult result)
1703
public
IPeerNeighbor
SlowestNeighbor()
1705
List<
IPeerNeighbor
> neighbors = this.GetConnectedNeighbors();
1706
IPeerNeighbor
slowNeighbor = null;
1710
foreach (
IPeerNeighbor
peer in neighbors)
System\ServiceModel\Channels\PeerNodeImplementation.cs (8)
1129
IPeerNeighbor
neighbor = (
IPeerNeighbor
)sender;
1158
IPeerNeighbor
neighbor = (
IPeerNeighbor
)sender;
1176
IPeerNeighbor
neighbor = (
IPeerNeighbor
)sender;
1199
IPeerNeighbor
n = (
IPeerNeighbor
)sender;
System\ServiceModel\Channels\PeerSecurityHelpers.cs (11)
681
class PeerChannelAuthenticatorExtension : IExtension<
IPeerNeighbor
>
683
IPeerNeighbor
host;
717
public void Attach(
IPeerNeighbor
host)
726
static public void OnNeighborClosed(
IPeerNeighbor
neighbor)
733
public void Detach(
IPeerNeighbor
host)
747
IPeerNeighbor
neighbor = host;
758
IPeerNeighbor
neighbor = host;
815
IPeerNeighbor
neighbor = host;
855
public void ProcessRstr(
IPeerNeighbor
neighbor, Message message, Claim claim)
875
IPeerNeighbor
neighbor = null;
888
void OnFailed(
IPeerNeighbor
neighbor)
System\ServiceModel\Channels\PeerSecurityManager.cs (4)
603
IPeerNeighbor
neighbor = sender as
IPeerNeighbor
;
628
public Message ProcessRequest(
IPeerNeighbor
neighbor, Message request)
644
void Abort(
IPeerNeighbor
neighbor)
System\ServiceModel\Channels\PeerService.cs (20)
19
void Connect(
IPeerNeighbor
neighbor, ConnectInfo connectInfo);
20
void Disconnect(
IPeerNeighbor
neighbor, DisconnectInfo disconnectInfo);
21
void Refuse(
IPeerNeighbor
neighbor, RefuseInfo refuseInfo);
22
void Welcome(
IPeerNeighbor
neighbor, WelcomeInfo welcomeInfo);
29
IAsyncResult OnFloodedMessage(
IPeerNeighbor
neighbor, TFloodContract floodedInfo, AsyncCallback callback, object state);
31
void ProcessLinkUtility(
IPeerNeighbor
neighbor, TLinkContract utilityInfo);
43
public delegate
IPeerNeighbor
GetNeighborCallback(IPeerProxy channel);
145
IPeerNeighbor
GetNeighbor()
147
IPeerNeighbor
neighbor = (
IPeerNeighbor
)getNeighborCallback(OperationContext.Current.GetCallbackChannel<IPeerProxy>());
261
IPeerNeighbor
neighbor = GetNeighbor();
270
IPeerNeighbor
neighbor = GetNeighbor();
279
IPeerNeighbor
neighbor = GetNeighbor();
288
IPeerNeighbor
neighbor = GetNeighbor();
297
IPeerNeighbor
neighbor = GetNeighbor();
313
IPeerNeighbor
neighbor = GetNeighbor();
322
IPeerNeighbor
neighbor = GetNeighbor();
324
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(typeof(
IPeerNeighbor
).ToString()));
337
IPeerNeighbor
neighbor = GetNeighbor();
339
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(typeof(
IPeerNeighbor
).ToString()));
System\ServiceModel\Channels\UtilityExtension.cs (18)
12
class UtilityExtension : IExtension<
IPeerNeighbor
>
22
IPeerNeighbor
owner;
37
public delegate void PruneNeighborCallback(
IPeerNeighbor
peer);
73
public void Attach(
IPeerNeighbor
host)
79
static public void OnNeighborConnected(
IPeerNeighbor
neighbor)
85
static public void OnNeighborClosed(
IPeerNeighbor
neighbor)
92
public void Detach(
IPeerNeighbor
host)
111
public static void OnMessageSent(
IPeerNeighbor
neighbor)
126
public static void OnEndSend(
IPeerNeighbor
neighbor, FloodAsyncResult fresult)
143
IPeerNeighbor
peer = owner;
151
static public void ProcessLinkUtility(
IPeerNeighbor
neighbor, UtilityInfo umessage)
210
public static uint UpdateLinkUtility(
IPeerNeighbor
neighbor, bool useful)
267
IPeerNeighbor
host = owner;
307
IPeerNeighbor
host = this.owner;
351
Exception HandleSendException(
IPeerNeighbor
host, Exception e, UtilityInfo umessage)
375
static internal void ReportCacheMiss(
IPeerNeighbor
neighbor, int missedBy)
432
IPeerNeighbor
peer = (
IPeerNeighbor
)owner;