Find information about who has what content.
Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntaxpublic interface IContentRouting
Methods | Improve this Doc View Source FindProvidersAsync(Cid, Int32, Action<Peer>, CancellationToken)
Find the providers for the specified content.
DeclarationTask<IEnumerable<Peer>> FindProvidersAsync(Cid id, int limit = 20, Action<Peer> providerFound = null, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description Cid id
The Cid of the content.
Int32 limitThe maximum number of peers to return. Defaults to 20.
Action<Peer> providerFoundAn action to perform when a provider is found.
CancellationToken cancelIs used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<IEnumerable<Peer>>A task that represents the asynchronous operation that returns a sequence of IPFS Peer.
| Improve this Doc View Source ProvideAsync(Cid, Boolean, CancellationToken)Adds the Cid to the content routing system.
DeclarationTask ProvideAsync(Cid cid, bool advertise = true, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task
A task that represents the asynchronous operation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4