Show / Hide Table of Contents

Class PeerManager

Manages the peers.

Inheritance
Object
PeerManager
Implements
IService
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: PeerTalk
Assembly: PeerTalk.dll
Syntax
public class PeerManager : IService
Remarks

Listens to the Swarm events to determine the state of a peer.

Fields

| Improve this Doc View Source

DeadPeers

The peers that are reachable.

Declaration
public ConcurrentDictionary<Peer, DeadPeer> DeadPeers
Field Value
Type Description
ConcurrentDictionary<Peer, DeadPeer>
| Improve this Doc View Source

InitialBackoff

Initial time to wait before attempting a reconnection to a dead peer.

Declaration
public TimeSpan InitialBackoff
Field Value
Type Description
TimeSpan

Defaults to 1 minute.

| Improve this Doc View Source

MaxBackoff

When reached, the peer is considered permanently dead.

Declaration
public TimeSpan MaxBackoff
Field Value
Type Description
TimeSpan

Defaults to 64 minutes.

Properties

| Improve this Doc View Source

Swarm

Provides access to other peers.

Declaration
public Swarm Swarm { get; set; }
Property Value
Type Description
Swarm

Methods

| Improve this Doc View Source

SetNotReachable(Peer)

Indicates that the peer can not be connected to.

Declaration
public void SetNotReachable(Peer peer)
Parameters
Type Name Description
Peer peer
| Improve this Doc View Source

SetReachable(Peer)

Indicates that the peer can be connected to.

Declaration
public void SetReachable(Peer peer)
Parameters
Type Name Description
Peer peer
| Improve this Doc View Source

StartAsync()

Start the service.

Declaration
public Task StartAsync()
Returns
Type Description
Task
| Improve this Doc View Source

StopAsync()

Stop the service.

Declaration
public Task StopAsync()
Returns
Type Description
Task

Implements

IService
  • Improve this Doc
  • View Source
Back to top Generated by DocFX