An open API service indexing awesome lists of open source software.

https://github.com/cagedtornado/centralconfig-net

.NET centralconfig client :electric_plug:
https://github.com/cagedtornado/centralconfig-net

Last synced: 8 months ago
JSON representation

.NET centralconfig client :electric_plug:

Awesome Lists containing this project

README

          

# centralconfig-net [![Build status](https://ci.appveyor.com/api/projects/status/ebtl0q21f2t4tjcq?svg=true)](https://ci.appveyor.com/project/danesparza/centralconfig-net)
.NET [centralconfig](https://github.com/cagedtornado/centralconfig) client

### Quick Start

Install the [NuGet package](https://www.nuget.org/packages/CentralConfigClient/) from the package manager console:

```powershell
Install-Package CentralConfigClient
```

In your application:

```CSharp
// Connect to the service
var config = new CentralConfigManager("http://centralconfig-service:3000", "YourAppName");

// Call 'get' to get your configs:
var stringVal = config.Get("SomeApplicationSetting");

// You can even set a default value to indicate
// what should be returned if your config item
// can't be found
var retval = config.Get("SomethingNotThere", 42);

```