Manages the IPLD (linked data) Directed Acrylic Graph.
Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntax Methods | Improve this Doc View Source GetAsync(Cid, CancellationToken)Get an IPLD node.
DeclarationTask<JObject> GetAsync(Cid id, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<Newtonsoft.Json.Linq.JObject>
A task that represents the asynchronous get operation. The task's value contains the node's content as JSON.
| Improve this Doc View Source GetAsync(String, CancellationToken)Gets the content of an IPLD node.
DeclarationTask<JToken> GetAsync(string path, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<Newtonsoft.Json.Linq.JToken>
A task that represents the asynchronous get operation. The task's value contains the path's value.
| Improve this Doc View Source GetAsync<T>(Cid, CancellationToken)Get an IPLD node of the specific type.
DeclarationTask<T> GetAsync<T>(Cid id, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<T>
A task that represents the asynchronous get operation. The task's value is a new instance of the T
class.
The object's type.
| Improve this Doc View Source PutAsync(JObject, String, String, String, Boolean, CancellationToken)Put JSON data as an IPLD node.
DeclarationTask<Cid> PutAsync(JObject data, string contentType = "dag-cbor", string multiHash = "sha2-256", string encoding = "base58btc", bool pin = true, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description Newtonsoft.Json.Linq.JObject data
The JSON data to send to the network.
String contentTypeThe content type or format of the data
; such as "dag-pb" or "dag-cbor". See MultiCodec for more details. Defaults to "dag-cbor".
The MultiHash algorithm name used to produce the Cid.
String encodingThe MultiBase algorithm name used to produce the Cid.
Boolean pinIf true the data
is pinned to local storage and will not be garbage collected. The default is true.
Is used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<Cid>A task that represents the asynchronous put operation. The task's value is the data's Cid.
| Improve this Doc View Source PutAsync(Stream, String, String, String, Boolean, CancellationToken)Put a stream of JSON as an IPLD node.
DeclarationTask<Cid> PutAsync(Stream data, string contentType = "dag-cbor", string multiHash = "sha2-256", string encoding = "base58btc", bool pin = true, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description Stream data
The stream of JSON.
String contentTypeThe content type or format of the data
; such as "dag-pb" or "dag-cbor". See MultiCodec for more details. Defaults to "dag-cbor".
The MultiHash algorithm name used to produce the Cid.
String encodingThe MultiBase algorithm name used to produce the Cid.
Boolean pinIf true the data
is pinned to local storage and will not be garbage collected. The default is true.
Is used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<Cid>A task that represents the asynchronous put operation. The task's value is the data's Cid.
| Improve this Doc View Source PutAsync(Object, String, String, String, Boolean, CancellationToken)Put an object as an IPLD node.
DeclarationTask<Cid> PutAsync(object data, string contentType = "dag-cbor", string multiHash = "sha2-256", string encoding = "base58btc", bool pin = true, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description Object data
The object to add.
String contentTypeThe content type or format of the data
; such as "dag-pb" or "dag-cbor". See MultiCodec for more details. Defaults to "dag-cbor".
The MultiHash algorithm name used to produce the Cid.
String encodingThe MultiBase algorithm name used to produce the Cid.
Boolean pinIf true the data
is pinned to local storage and will not be garbage collected. The default is true.
Is used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<Cid>A task that represents the asynchronous put operation. The task's value is the data's Cid.
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