Manages the IPFS Configuration.
Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntaxpublic interface IConfigApi
Methods | Improve this Doc View Source GetAsync(String, CancellationToken)
Gets the value of a configuration key.
DeclarationTask<JToken> GetAsync(string key, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<Newtonsoft.Json.Linq.JToken>
The value of the key
as Newtonsoft.Json.Linq.JToken.
When the key
does not exist.
Gets the entire configuration.
DeclarationTask<JObject> GetAsync(CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<Newtonsoft.Json.Linq.JObject>
A Newtonsoft.Json.Linq.JObject containing the configuration.
| Improve this Doc View Source ReplaceAsync(JObject)Replaces the entire configuration.
DeclarationTask ReplaceAsync(JObject config)
Parameters Type Name Description Newtonsoft.Json.Linq.JObject config Returns | Improve this Doc View Source SetAsync(String, JToken, CancellationToken)
Adds or replaces a configuration value.
DeclarationTask SetAsync(string key, JToken value, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description String key
The key name, such as "Addresses.API".
Newtonsoft.Json.Linq.JToken valueThe new Newtonsoft.Json.Linq.JToken value of the key
.
Is used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns | Improve this Doc View Source SetAsync(String, String, CancellationToken)Adds or replaces a configuration value.
DeclarationTask SetAsync(string key, string value, CancellationToken cancel = default(CancellationToken))
Parameters Returns See Also
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