Skip to content

appconfi/appconfi-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appconfi

[Appconfi] - Service to centrally manage application settings and feature toggles for applications and services.

Installation

The Appconfi .NET SDK is available as a Nuget package, to install run the following command in the Package Manager Console

Install-Package Appconfi

More info is available on nuget

Usage

In order to use the Appconfi you will need to deploy an appconfi server and /account/register.

From there you can create your first application and setup your configuration. To use the Appconfi API to access your configuration go to /accesskeys there you can find the application_id and your application_key.

How to use

var manager = Configuration.NewInstance(applicationId, apiKey);

//Start monitoring changes in your application settings and features toggles.
manager.StartMonitor();

var setting = manager.GetSetting("my_good_setting");

var isFeatureEnabled = manager.IsFeatureEnabled("my_awesome_feature");

Optional parameters

Change your environments:

var env = "PRODUCTION";
var refreshInterval =  TimeSpan.FromMinutes(1);
var manager = Configuration.NewInstance(applicationId, apiKey, env, refreshInterval);