Skip to content

Client Additional Configuration

baileyjs78 edited this page Aug 16, 2019 · 4 revisions

There are certain default values MogglesClient uses that can be configured.

Caching time

The feature toggles are saved in the application cache and are refreshed hourly by default, however you can override that value by adding a new key in the application configuration file. The value is in seconds.

.NET Framework

web.config

<add key="Moggles.CachingTime" value="3600"/>

.NET Core

appsettings.json

"Moggles": {
    "CachingTime": "3600"
} 

API call timeout period

The call that retrieves the feature toggle has a default timeout value of 30 seconds. The value can be configured by adding a new key in the configuration file. The value is in seconds.

.NET Framework

web.config

<add key="Moggles.RequestTimeout" value="30"/>

.NET Core

appsettings.json

"Moggles": {
    "RequestTimeout":  "30"
} 

Clone this wiki locally