Show / Hide Table of Contents

Class Bootstrap

Discovers the pre-configured peers.

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

Properties

| Improve this Doc View Source

Addresses

The addresses of the pre-configured peers.

Declaration
public IEnumerable<MultiAddress> Addresses { get; set; }
Property Value
Type Description
IEnumerable<MultiAddress>

Each address must end with the ipfs protocol and the public ID of the peer. For example "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"

Methods

| 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

Events

| Improve this Doc View Source

PeerDiscovered

Raised when a peer is discovered.

Declaration
public event EventHandler<Peer> PeerDiscovered
Event Type
Type Description
EventHandler<Peer>
Remarks

The peer must contain at least one MultiAddress. The address must end with the ipfs protocol and the public ID of the peer. For example "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"

Implements

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