Manage pinned objects (locally stored and permanent).
Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntax Methods | Improve this Doc View Source AddAsync(String, Boolean, CancellationToken)Adds an IPFS object to the pinset and also stores it to the IPFS repo. pinset is the set of hashes currently pinned (not gc'able).
DeclarationTask<IEnumerable<Cid>> AddAsync(string path, bool recursive = true, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description String path
A CID or path to an existing object, such as "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about" or "QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V"
Boolean recursivetrue to recursively pin links of the object; otherwise, false to only pin the specified object. Default is true.
CancellationToken cancelIs used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<IEnumerable<Cid>>A task that represents the asynchronous operation. The task's value is a sequence of Cid that were pinned.
| Improve this Doc View Source ListAsync(CancellationToken)List all the objects pinned to local storage.
DeclarationTask<IEnumerable<Cid>> ListAsync(CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<IEnumerable<Cid>>
A task that represents the asynchronous operation. The task's value is a sequence of Cid.
| Improve this Doc View Source RemoveAsync(Cid, Boolean, CancellationToken)Unpin an object.
DeclarationTask<IEnumerable<Cid>> RemoveAsync(Cid id, bool recursive = true, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description Cid id
The CID of the object.
Boolean recursivetrue to recursively unpin links of object; otherwise, false to only unpin the specified object. Default is true.
CancellationToken cancelIs used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<IEnumerable<Cid>>A task that represents the asynchronous operation. The task's value is a sequence of Cid that were unpinned.
See AlsoRetroSearch 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