Class Bootstrap
Discovers the pre-configured peers.
Inherited Members
Namespace: PeerTalk.Discovery
Assembly: PeerTalk.dll
Syntax
public class Bootstrap : IPeerDiscovery, IService
Properties
| Improve this Doc View SourceAddresses
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 SourceStartAsync()
Start the service.
Declaration
public Task StartAsync()
Returns
| Type | Description |
|---|---|
| Task |
StopAsync()
Stop the service.
Declaration
public Task StopAsync()
Returns
| Type | Description |
|---|---|
| Task |
Events
| Improve this Doc View SourcePeerDiscovered
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"