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.IConfigApi.html below:

Interface IConfigApi

Manages the IPFS Configuration.

Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntax
public interface IConfigApi
Methods | Improve this Doc View Source GetAsync(String, CancellationToken)

Gets the value of a configuration key.

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

Exceptions Type Condition Exception

When the key does not exist.

| Improve this Doc View Source GetAsync(CancellationToken)

Gets the entire configuration.

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

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

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

The new Newtonsoft.Json.Linq.JToken value of the key.

CancellationToken cancel

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.

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