Skip to main content

Configuration Client

Here we are some steps to be followed for implementing JSLT Client to your service.

Configuration Client is the *nuget package belongs to *http://cm.com and it is a part of Marketplace Development.This can be use for calling configurations.
It consist of helping methods to call configuration.

**Let' s Start: **​

Step 1:​

Download Latest Version CM.Marketplace.Common.Configuration.Clientnuget package.

or

Run following command

nuget install CM.Marketplace.Common.Configuration.Client -Version <Enter-Lates-Version> -Source https://proget2.sharedservices.cmgroep.local/nuget/CMFeed/

or

Install from the Package Manager Console within Visual Studio, run the following command:

Install-Package CM.Marketplace.Common.Configuration.Client -Version <Enter-Lates-Version> -Source https://proget2.sharedservices.cmgroep.local/nuget/CMFeed/

**Note: **Make sure to download latest Release Version. Replace <Enter-Lates-Version> with Latest Version

Step 2:​

In your appsettings.json add following lines in parent level:

"Configuration": {
"BaseUri": "ADD_BASE_URL",
"AuthenticationKey": "ADD_AUTHENTICATION_KEY", //optional
"CacheExpirationTime":"15"
}

**Warning: **AuthenticationKey is optional, use it when needed

Step 3:​

In your Program.cs file insert following line.

//---Service Rgistration----
builder.Services.AddConfigurationClient();
//---Builder Registration----
app.UseConfigurationClient();

All setup done ! Now it is time to implement !