You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/sdk-reference/dotnet.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ These are the available options on the `ConfigCatClientOptions` class:
117
117
|`HttpClientHandler`| Optional, `HttpClientHandler` to provide network credentials and proxy settings. [More about the proxy settings](#using-configcat-behind-a-proxy). | built-in `HttpClientHandler`|
118
118
|`HttpTimeout`| Optional, sets the underlying HTTP client's timeout. [More about the HTTP timeout](#http-timeout). |`TimeSpan.FromSeconds(30)`|
119
119
|`FlagOverrides`| Optional, sets the local feature flag & setting overrides. [More about feature flag overrides](#flag-overrides). ||
120
-
|`DataGovernance`| Optional, defaults to `Global`. Describes the location of your feature flag and setting data within the ConfigCat CDN. This parameter needs to be in sync with your Data Governance preferences. [More about Data Governance](../advanced/data-governance.mdx). Available options: `Global`, `EuOnly`|`Global`|
120
+
|`DataGovernance`| Optional, describes the location of your feature flag and setting data within the ConfigCat CDN. This parameter needs to be in sync with your Data Governance preferences. [More about Data Governance](../advanced/data-governance.mdx). Available options: `Global`, `EuOnly`|`Global`|
121
121
|`DefaultUser`| Optional, sets the default user. [More about default user](#default-user). |`null` (none) |
122
122
|`Offline`| Optional, determines whether the client should be initialized to offline mode. [More about offline mode](#online--offline-mode). |`false`|
The ConfigCat SDK for JavaScript provides the following platform-specific SDKs as a [single, unified NPM package](https://www.npmjs.com/package/@configcat/sdk):
: <>a default implementation corresponding to the platform</>;
319
333
320
-
<Ifcondition={true}>
334
+
exportconst getDefaultCacheImpl = (platform) =>
335
+
platform==="browser"? <><Linkto="https://github.com/configcat/js-unified-sdk/blob/master/src/browser/LocalStorageConfigCache.ts"><code>LocalStorageConfigCache</code></Link> or e <Linkto="https://github.com/configcat/js-unified-sdk/blob/master/src/shared/IndexedDBConfigCache.ts"><code>IndexedDBConfigCache</code></Link></>
:platform==="chromium-extension"? <><Linkto="https://github.com/configcat/js-unified-sdk/blob/master/src/chromium-extension/ChromeLocalStorageConfigCache.ts"><code>ChromeLocalStorageConfigCache</code></Link> or <Linkto="https://github.com/configcat/js-unified-sdk/blob/master/src/shared/IndexedDBConfigCache.ts"><code>IndexedDBConfigCache</code></Link></>
|`configFetcher`| Custom [`IConfigCatConfigFetcher`](https://github.com/configcat/js-unified-sdk/blob/master/src/ConfigFetcher.ts) instance for downloading a config. |{getDefaultConfigFetcherImpl(props.platform)}|
325
-
|`cache`| Custom [`IConfigCatCache`](https://github.com/configcat/js-unified-sdk/blob/master/src/ConfigCatCache.ts) implementation for caching the downloaded config. |[`InMemoryConfigCache`](https://github.com/configcat/js-unified-sdk/blob/master/src/ConfigCatCache.ts)|
345
+
|`configFetcher`| Custom [`IConfigCatConfigFetcher`](https://github.com/configcat/js-unified-sdk/blob/master/src/ConfigFetcher.ts) instance for downloading a config. |{getDefaultConfigFetcherImpl(props.platform)}|
346
+
|`cache`| Custom [`IConfigCatCache`](https://github.com/configcat/js-unified-sdk/blob/master/src/ConfigCatCache.ts) implementation for caching the downloaded config. |{getDefaultCacheImpl(props.platform) }|
|`logFilter`| Sets a custom log filter. [More about log filtering](#log-filtering). |`undefined` (none) |
349
+
|`baseUrl`| Sets the CDN base url (forward proxy, dedicated subscription) from where the SDK will download the config JSON. ||
327
350
|`requestTimeoutMs`| The amount of milliseconds the SDK waits for a response from the ConfigCat servers before returning values from the cache. | 30000 |
351
+
|`flagOverrides`| Local feature flag & setting overrides. [More about feature flag overrides](#flag-overrides). ||
352
+
|`dataGovernance`| Describes the location of your feature flag and setting data within the ConfigCat CDN. This parameter needs to be in sync with your Data Governance preferences. [More about Data Governance](../../advanced/data-governance.mdx). Available options: `DataGovernance.Global`, `DataGovernance.EuOnly`. |`DataGovernance.Global`|
353
+
|`defaultUser`| Sets the default user. [More about default user](#default-user). |`undefined` (none) |
354
+
|`offline`| Determines whether the client should be initialized to offline mode. [More about offline mode](#online--offline-mode). |`false`|
|`configFetcher`| Custom [`IConfigCatConfigFetcher`](https://github.com/configcat/js-unified-sdk/blob/master/src/ConfigFetcher.ts) instance for downloading a config. |{getDefaultConfigFetcherImpl(props.platform) }|
363
+
|`cache`| Custom [`IConfigCatCache`](https://github.com/configcat/js-unified-sdk/blob/master/src/ConfigCatCache.ts) implementation for caching the downloaded config. |{getDefaultCacheImpl(props.platform) }|
|`logFilter`| Sets a custom log filter. [More about log filtering](#log-filtering). |`undefined` (none) |
328
366
|`baseUrl`| Sets the CDN base url (forward proxy, dedicated subscription) from where the SDK will download the config JSON. ||
367
+
|`proxy`| Proxy settings. [More about the proxy settings](#using-configcat-behind-a-proxy). ||
368
+
|`requestTimeoutMs`| The amount of milliseconds the SDK waits for a response from the ConfigCat servers before returning values from the cache. | 30000 |
369
+
|`flagOverrides`| Local feature flag & setting overrides. [More about feature flag overrides](#flag-overrides). ||
329
370
|`dataGovernance`| Describes the location of your feature flag and setting data within the ConfigCat CDN. This parameter needs to be in sync with your Data Governance preferences. [More about Data Governance](../../advanced/data-governance.mdx). Available options: `DataGovernance.Global`, `DataGovernance.EuOnly`. |`DataGovernance.Global`|
330
-
|`flagOverrides`| Local feature flag & setting overrides. [More about feature flag overrides](#flag-overrides). | - |
331
371
|`defaultUser`| Sets the default user. [More about default user](#default-user). |`undefined` (none) |
332
372
|`offline`| Determines whether the client should be initialized to offline mode. [More about offline mode](#online--offline-mode). |`false`|
0 commit comments