Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 862 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 862 Bytes

centralconfig-net Build status

.NET centralconfig client

Quick Start

Install the NuGet package from the package manager console:

Install-Package CentralConfigClient

In your application:

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

//  Call 'get' to get your configs:
var stringVal = config.Get<string>("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<int>("SomethingNotThere", 42);