Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚙ Add basic Microsoft.Extensions.Configuration support #58

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

kzu
Copy link
Collaborator

@kzu kzu commented Apr 27, 2021

Basic read/write is supported, alongside hierarchical loading.

Given a dotnet-config like:

[http "https://foo.com"]
   sslVerify = false

You can retrieve the value with the following key:

var config = new ConfigurationBuilder().AddDotNetConfig().Build();
var ssl = config["http:https://foo.com:sslVerify"];

So section/subsection/variable are fully supported.

Monitoring files and reloading is not supported at this time.

Fixes #3.

Basic read/write is supported, alongside hierarchical loading.

Given a dotnet-config like:

```editorconfig
[http "https://foo.com"]
   sslVerify = false
```

You can retrieve the value with the following key:

```csharp
var config = new ConfigurationBuilder().AddDotNetConfig().Build();
var ssl = config["http:https://foo.com:sslVerify"];
```

So section/subsection/variable are fully supported.

Monitoring files and reloading is not supported at this time.

Fixes #3.
@kzu kzu force-pushed the feature/configuration branch from f066557 to 05ef8ed Compare April 27, 2021 17:27
@kzu kzu enabled auto-merge (rebase) April 27, 2021 17:27
@kzu kzu merged commit e50c281 into main Apr 27, 2021
@kzu kzu deleted the feature/configuration branch April 27, 2021 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Microsoft.Extensions.Configuration support
1 participant