A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://richardschneider.github.io/net-ipfs-core/api/Ipfs.CoreApi.IContentRouting.html below:

Interface IContentRouting

Find information about who has what content.

Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntax
public interface IContentRouting
Methods | Improve this Doc View Source FindProvidersAsync(Cid, Int32, Action<Peer>, CancellationToken)

Find the providers for the specified content.

Declaration
Task<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 limit

The maximum number of peers to return. Defaults to 20.

Action<Peer> providerFound

An action to perform when a provider is found.

CancellationToken cancel

Is 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.

Declaration
Task 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