One call that serves IConfiguration and the container from a single Nexus client.
Package: WestyxNexus.Extensions.Configuration. The sample below also uses WestyxNexus.Extensions.DependencyInjection (AddWestyxNexusSecrets) and WestyxNexus.FeatureManagement (AddWestyxNexusFeatureManagement).This is the call Getting started uses, and the right one for most ASP.NET Core applications.The SDK’s packages compose, and one call wires them. builder.AddWestyxNexus(config) creates a
single NexusClient, serves IConfiguration from it, and registers it in the container - so config
binding, secrets binding,
feature management and an injected client all read one cache,
behind one sync loop and one SSE connection.
One class can take a config value and a secret at the same time. Configure<T>(section) fills the
properties backed by Nexus configs, AddWestyxNexusSecrets<T>(prefix) fills the ones backed by
secrets, and each writes only what it matched:
public sealed class MyOptions{ public string TestConfig { get; set; } = ""; // Nexus config "MyOptions.TestConfig" public string TestSecret { get; set; } = ""; // Nexus secret "MyOptions.TestSecret"}
The client is disposed with the host.
Which entry point to use
You want
Call
Nexus configs in IConfiguration, and anything else as well
builder.Configuration.AddWestyx(config) serves IConfiguration only: the client it creates stays
inside the configuration provider, and the container never sees it - which is why
AddWestyxNexusSecrets<T>() and AddWestyxNexusFeatureManagement() cannot be added next to it on
their own. services.AddWestyxNexus(...) is the mirror image: it serves the container only.
Calling both wires two independent clients - two initial syncs, two TTL poll loops and two SSE
connections, so one application consumes two of the service’s connection slots.
builder.AddWestyxNexus(config) exists to avoid exactly that, and rejects a second client
registration rather than silently choosing one.
What the one-call path gives up
The configuration provider needs Nexus data while IConfiguration is being built, which is before a
service provider exists. The client is therefore created there, with a blocking initial sync - the
same thing builder.Configuration.AddWestyx(config) has always done. Two consequences follow:
IHttpClientFactory is not used. The client owns its own HttpClient, so handler rotation and
any AddHttpClient policies do not apply to it. NexusConfig.PooledConnectionLifetime
(default 2 minutes) is what keeps its DNS observations fresh.
The application’s ILoggerFactory is not attached automatically, because it does not exist
yet. Set NexusConfig.LoggerFactory to route SDK diagnostics.
If you do not need Nexus values in IConfiguration, prefer
services.AddWestyxNexus(...): it wires IHttpClientFactory
and the application’s logging, and its initial sync runs asynchronously during host startup.
Start the SSE live-update stream, so IOptionsMonitor<T> consumers and secret bindings see changes without a restart. Without it the client syncs once per TTL.
includeSecrets
false
Whether secrets are placed in IConfiguration, the Azure Key Vault-style layout. The default keeps them out of the configuration tree - bind them with AddWestyxNexusSecrets<T>() instead, which still gives you IOptions<T>. Both are supported; Design decisions explains the trade-off.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Westyx Nexus","colors":{"primary":"#a855f7","light":"#a855f7","dark":"#a855f7"},"logo":{"light":"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9","dark":"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9"},"favicon":"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9","appearance":{"default":"dark"},"navbar":{"links":[],"primary":{"type":"button","label":"Go to Console","href":"https://app.westyx.dev"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/westyx"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"westyx","hasAudioNarration":false,"actualSubdomain":"westyx","customDomains":["docs.westyx.dev"],"gitSource":{"type":"gitlab","owner":"westyx/nexus","repo":"public-documentation","projectId":82540509,"deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aff1d0c144212df22539fef","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"SDKs","count":153},{"language":"default","tag":"Backend SDKs","count":115},{"language":"default","tag":"Browser SDKs","count":33},{"language":"default","tag":".NET","count":21},{"language":"default","tag":"Reference","count":15},{"language":"default","tag":"Platform","count":15},{"language":"default","tag":"Node.js","count":15},{"language":"default","tag":"Python","count":15},{"language":"default","tag":"Go","count":13},{"language":"default","tag":"Kotlin","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"sdks/dotnet/package-wiring","slug":"/sdks/dotnet/package-wiring","pageMetadata":{"title":".NET SDK - Wiring the packages together","description":"One call that serves IConfiguration and the container from a single Nexus client.","href":"/sdks/dotnet/package-wiring"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"One call that serves IConfiguration and the container from a single Nexus client.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsxs(_components.em,{children:[`Package: `,_jsx(_components.code,{children:`WestyxNexus.Extensions.Configuration`}),`. The sample below also uses `,_jsx(_components.code,{children:`WestyxNexus.Extensions.DependencyInjection`}),` (`,_jsx(_components.code,{children:`AddWestyxNexusSecrets`}),`) and `,_jsx(_components.code,{children:`WestyxNexus.FeatureManagement`}),` (`,_jsx(_components.code,{children:`AddWestyxNexusFeatureManagement`}),`).`]})}),`\n`,_jsxs(_components.p,{children:[`This is the call `,_jsx(_components.a,{href:`/sdks/dotnet/getting-started`,children:`Getting started`}),` uses, and the right one for most ASP.NET Core applications.`]}),`\n`,_jsxs(_components.p,{children:[`The SDK’s packages compose, and one call wires them. `,_jsx(_components.code,{children:`builder.AddWestyxNexus(config)`}),` creates a\nsingle `,_jsx(_components.code,{children:`NexusClient`}),`, serves `,_jsx(_components.code,{children:`IConfiguration`}),` from it, and registers it in the container - so config\nbinding, `,_jsx(_components.a,{href:`/sdks/dotnet/secrets-binding`,children:`secrets binding`}),`,\n`,_jsx(_components.a,{href:`/sdks/dotnet/feature-management`,children:`feature management`}),` and an injected client all read one cache,\nbehind one sync loop and one SSE connection.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` builder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` WebApplication`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`CreateBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddWestyxNexus`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` NexusConfig`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BaseUrl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Nexus:BaseUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ApiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Nexus:ApiKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Configure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`MyOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Configuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetSection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MyOptions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddWestyxNexusSecrets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`MyOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MyOptions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddWestyxNexusFeatureManagement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`One class can take a config value and a secret at the same time. `,_jsx(_components.code,{children:`Configure\u003cT>(section)`}),` fills the\nproperties backed by Nexus configs, `,_jsx(_components.code,{children:`AddWestyxNexusSecrets\u003cT>(prefix)`}),` fills the ones backed by\nsecrets, and each writes only what it matched:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` sealed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MyOptions`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` TestConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Nexus config \"MyOptions.TestConfig\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` TestSecret`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Nexus secret \"MyOptions.TestSecret\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The client is disposed with the host.`}),`\n`,_jsx(Heading,{level:`2`,id:`which-entry-point-to-use`,children:`Which entry point to use`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`You want`}),_jsx(_components.th,{children:`Call`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Nexus configs in `,_jsx(_components.code,{children:`IConfiguration`}),`, and anything else as well`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`builder.AddWestyxNexus(config)`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Nexus configs in `,_jsx(_components.code,{children:`IConfiguration`}),`, nothing else`]}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/sdks/dotnet/aspnetcore-configuration`,children:_jsx(_components.code,{children:`builder.Configuration.AddWestyx(config)`})})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Secrets, flags or the client injected - no Nexus values in `,_jsx(_components.code,{children:`IConfiguration`})]}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/sdks/dotnet/dependency-injection`,children:_jsx(_components.code,{children:`builder.Services.AddWestyxNexus(...)`})})})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`builder.Configuration.AddWestyx(config)`}),` serves `,_jsx(_components.code,{children:`IConfiguration`}),` only: the client it creates stays\ninside the configuration provider, and the container never sees it - which is why\n`,_jsx(_components.code,{children:`AddWestyxNexusSecrets\u003cT>()`}),` and `,_jsx(_components.code,{children:`AddWestyxNexusFeatureManagement()`}),` cannot be added next to it on\ntheir own. `,_jsx(_components.code,{children:`services.AddWestyxNexus(...)`}),` is the mirror image: it serves the container only.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Calling both wires `,_jsx(_components.strong,{children:`two independent clients`}),` - two initial syncs, two TTL poll loops and two SSE\nconnections, so one application consumes two of the service’s connection slots.\n`,_jsx(_components.code,{children:`builder.AddWestyxNexus(config)`}),` exists to avoid exactly that, and rejects a second client\nregistration rather than silently choosing one.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`what-the-one-call-path-gives-up`,children:`What the one-call path gives up`}),`\n`,_jsxs(_components.p,{children:[`The configuration provider needs Nexus data while `,_jsx(_components.code,{children:`IConfiguration`}),` is being built, which is before a\nservice provider exists. The client is therefore created there, with a blocking initial sync - the\nsame thing `,_jsx(_components.code,{children:`builder.Configuration.AddWestyx(config)`}),` has always done. Two consequences follow:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`IHttpClientFactory`}),` is not used.`]}),` The client owns its own `,_jsx(_components.code,{children:`HttpClient`}),`, so handler rotation and\nany `,_jsx(_components.code,{children:`AddHttpClient`}),` policies do not apply to it. `,_jsx(_components.code,{children:`NexusConfig.PooledConnectionLifetime`}),`\n(default 2 minutes) is what keeps its DNS observations fresh.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`The application’s `,_jsx(_components.code,{children:`ILoggerFactory`}),` is not attached automatically`]}),`, because it does not exist\nyet. Set `,_jsx(_components.code,{children:`NexusConfig.LoggerFactory`}),` to route SDK diagnostics.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you do not need Nexus values in `,_jsx(_components.code,{children:`IConfiguration`}),`, prefer\n`,_jsx(_components.a,{href:`/sdks/dotnet/dependency-injection`,children:_jsx(_components.code,{children:`services.AddWestyxNexus(...)`})}),`: it wires `,_jsx(_components.code,{children:`IHttpClientFactory`}),`\nand the application’s logging, and its initial sync runs asynchronously during host startup.`]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`AddWestyxNexus`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`enableStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`includeSecrets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`enableStream`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{children:[`Start the SSE live-update stream, so `,_jsx(_components.code,{children:`IOptionsMonitor\u003cT>`}),` consumers and secret bindings see changes without a restart. Without it the client syncs once per TTL.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`includeSecrets`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Whether secrets are placed in `,_jsx(_components.code,{children:`IConfiguration`}),`, the Azure Key Vault-style layout. The default keeps them out of the configuration tree - bind them with `,_jsx(_components.a,{href:`/sdks/dotnet/secrets-binding`,children:_jsx(_components.code,{children:`AddWestyxNexusSecrets\u003cT>()`})}),` instead, which still gives you `,_jsx(_components.code,{children:`IOptions\u003cT>`}),`. Both are supported; `,_jsx(_components.a,{href:`/sdks/dotnet/design-decisions`,children:`Design decisions`}),` explains the trade-off.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":".NET SDK - Wiring the packages together","description":"One call that serves IConfiguration and the container from a single Nexus client.","href":"/sdks/dotnet/package-wiring"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Which entry point to use","slug":"which-entry-point-to-use","depth":2,"children":[]},{"title":"What the one-call path gives up","slug":"what-the-one-call-path-gives-up","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"westyx","siteName":"Westyx Nexus","title":".NET SDK - Wiring the packages together - Westyx Nexus","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T08:47:35.321Z","originalFileLocation":"sdks/dotnet/package-wiring.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"One call that serves IConfiguration and the container from a single Nexus client.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Westyx Nexus\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\".NET SDK - Wiring the packages together - Westyx Nexus\">\u003cmeta data-mint-head property=\"og:description\" content=\"One call that serves IConfiguration and the container from a single Nexus client.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Westyx Nexus\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.westyx.dev/sdks/dotnet/package-wiring\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://westyx.mintlify.site/_mintlify/api/og/v2?division=Integration\u0026amp;title=.NET+SDK+-+Wiring+the+packages+together\u0026amp;description=One+call+that+serves+IConfiguration+and+the+container+from+a+single+Nexus+client.\u0026amp;theme=2bda145bf35d10a16e63e692\u0026amp;signature=314522b4747cac29c4d5f116274dbf209d5d4ca142b9f1268619e43f7e5d352b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\".NET SDK - Wiring the packages together - Westyx Nexus\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One call that serves IConfiguration and the container from a single Nexus client.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://westyx.mintlify.site/_mintlify/api/og/v2?division=Integration\u0026amp;title=.NET+SDK+-+Wiring+the+packages+together\u0026amp;description=One+call+that+serves+IConfiguration+and+the+container+from+a+single+Nexus+client.\u0026amp;theme=2bda145bf35d10a16e63e692\u0026amp;signature=314522b4747cac29c4d5f116274dbf209d5d4ca142b9f1268619e43f7e5d352b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/westyx/XN0iyph2fdpbzBTn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Westyx Nexus\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#a855f7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.westyx.dev/sdks/dotnet/package-wiring\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdks/dotnet/package-wiring.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.westyx.dev/#organization\",\"name\":\"Westyx Nexus\",\"url\":\"https://docs.westyx.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/westyx/SZvVVOurEPriggFG/nexus-logo.webp?fit=max\u0026auto=format\u0026n=SZvVVOurEPriggFG\u0026q=85\u0026s=6ffbf78ce14ec5ee73fe3b569f8953a9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.westyx.dev#website\",\"name\":\"Westyx Nexus\",\"url\":\"https://docs.westyx.dev\",\"publisher\":{\"@id\":\"https://docs.westyx.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring#webpage\",\"url\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring\",\"name\":\".NET SDK - Wiring the packages together\",\"description\":\"One call that serves IConfiguration and the container from a single Nexus client.\",\"dateModified\":\"2026-11-12T08:47:35.321Z\",\"isPartOf\":{\"@id\":\"https://docs.westyx.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Backend SDKs\",\"item\":\"https://docs.westyx.dev/sdks/go\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".NET\",\"item\":\"https://docs.westyx.dev/sdks/dotnet\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\".NET SDK - Wiring the packages together\",\"item\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring#article\",\"headline\":\".NET SDK - Wiring the packages together\",\"name\":\".NET SDK - Wiring the packages together\",\"description\":\"One call that serves IConfiguration and the container from a single Nexus client.\",\"url\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring\",\"mainEntityOfPage\":{\"@id\":\"https://docs.westyx.dev/sdks/dotnet/package-wiring#webpage\"},\"dateModified\":\"2026-11-12T08:47:35.321Z\",\"publisher\":{\"@id\":\"https://docs.westyx.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.westyx.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Westyx Nexus\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Westyx Nexus\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdks/dotnet/package-wiring.md","siteName":"Westyx Nexus","nav":{"global":null,"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":""}]},{"tab":"Features","pages":[{"title":"Features","href":"/features/secrets"}]},{"tab":"SDKs","groups":[{"group":"Overview","pages":[{"title":"SDK Overview","icon":"grid-2","href":"/sdks/overview"}]},{"group":"Backend SDKs","pages":[{"group":"Go","icon":"golang","pages":[{"title":"Go SDK","href":"/sdks/go/index"},{"title":"Go SDK - Installation","href":"/sdks/go/installation"},{"title":"Go SDK - Configuration","href":"/sdks/go/configuration"},{"title":"Go SDK - API Reference","href":"/sdks/go/api-reference"},{"title":"Go SDK - Config values","href":"/sdks/go/config-values"},{"title":"Go SDK - Logging","href":"/sdks/go/logging"},{"title":"Go SDK - Error Handling","href":"/sdks/go/error-handling"},{"title":"Go SDK - SSE Live Updates","href":"/sdks/go/sse-live-updates"},{"title":"Go SDK - Stream Observer","href":"/sdks/go/stream-observer"},{"title":"Go SDK - Workload Identity Federation","href":"/sdks/go/workload-identity"},{"title":"Go SDK - Caching Behaviour","href":"/sdks/go/caching-behaviour"},{"title":"Go SDK - OpenFeature integration","href":"/sdks/go/openfeature"},{"title":"Go SDK - Version history","href":"/sdks/go/version-history"}]},{"group":"Node.js","icon":"node-js","pages":[{"title":"Node.js SDK","href":"/sdks/nodejs/index"},{"title":"Node.js SDK - Installation","href":"/sdks/nodejs/installation"},{"title":"Node.js SDK - NestJS","href":"/sdks/nodejs/nestjs"},{"title":"Node.js SDK - Configuration","href":"/sdks/nodejs/configuration"},{"title":"Node.js SDK - API Reference","href":"/sdks/nodejs/api-reference"},{"title":"Node.js SDK - Config values","href":"/sdks/nodejs/config-values"},{"title":"Node.js SDK - Logging","href":"/sdks/nodejs/logging"},{"title":"Node.js SDK - Error Handling","href":"/sdks/nodejs/error-handling"},{"title":"Node.js SDK - File-type secret security","href":"/sdks/nodejs/file-secret-security"},{"title":"Node.js SDK - SSE Live Updates","href":"/sdks/nodejs/sse-live-updates"},{"title":"Node.js SDK - Stream Observer","href":"/sdks/nodejs/stream-observer"},{"title":"Node.js SDK - Workload Identity Federation","href":"/sdks/nodejs/workload-identity"},{"title":"Node.js SDK - Caching Behaviour","href":"/sdks/nodejs/caching-behaviour"},{"title":"Node.js SDK - OpenFeature","href":"/sdks/nodejs/openfeature"},{"title":"Node.js SDK - Version history","href":"/sdks/nodejs/version-history"}]},{"group":"Python","icon":"python","pages":[{"title":"Python SDK","href":"/sdks/python/index"},{"title":"Python SDK - Installation","href":"/sdks/python/installation"},{"title":"Python SDK - Configuration","href":"/sdks/python/configuration"},{"title":"Python SDK - Framework adapters","href":"/sdks/python/framework-adapters"},{"title":"Python SDK - Logging","href":"/sdks/python/logging"},{"title":"Python SDK - API Reference","href":"/sdks/python/api-reference"},{"title":"Python SDK - Error Handling","href":"/sdks/python/error-handling"},{"title":"Python SDK - SSE Live Updates","href":"/sdks/python/sse-live-updates"},{"title":"Python SDK - Stream Observer","href":"/sdks/python/stream-observer"},{"title":"Python SDK - Workload Identity Federation","href":"/sdks/python/workload-identity"},{"title":"Python SDK - Caching Behaviour","href":"/sdks/python/caching-behaviour"},{"title":"Python SDK - Type checking","href":"/sdks/python/type-checking"},{"title":"Python SDK - File-type secret security","href":"/sdks/python/file-secret-security"},{"title":"Python SDK - OpenFeature provider","href":"/sdks/python/openfeature-provider"},{"title":"Python SDK - Version history","href":"/sdks/python/version-history"}]},{"group":".NET","icon":"microsoft","pages":[{"group":"Getting started","pages":[{"title":".NET SDK","href":"/sdks/dotnet/index"},{"title":".NET SDK - Getting started with ASP.NET Core","href":"/sdks/dotnet/getting-started"},{"title":".NET SDK - Installation","description":"Add the GitLab NuGet source and install the WestyxNexus package.","href":"/sdks/dotnet/installation"}]},{"group":"Integration","pages":[{"title":".NET SDK - Wiring the packages together","href":"/sdks/dotnet/package-wiring"},{"title":".NET SDK - Dependency injection","description":"Register the Nexus client with AddWestyxNexus() - IHttpClientFactory, ILoggerFactory, and asynchronous startup.","href":"/sdks/dotnet/dependency-injection"},{"title":".NET SDK - ASP.NET Core IConfiguration","href":"/sdks/dotnet/aspnetcore-configuration"},{"title":".NET SDK - Secrets binding","href":"/sdks/dotnet/secrets-binding"},{"title":".NET SDK - Feature management","href":"/sdks/dotnet/feature-management"},{"title":"OpenFeature integration","href":"/sdks/dotnet/openfeature"}]},{"group":"Reference","pages":[{"title":".NET SDK - Configuration","href":"/sdks/dotnet/configuration"},{"title":".NET SDK - API Reference","href":"/sdks/dotnet/api-reference"},{"title":".NET SDK - Error Handling","href":"/sdks/dotnet/error-handling"},{"title":".NET SDK - Caching Behaviour","href":"/sdks/dotnet/caching-behaviour"},{"title":".NET SDK - SSE Live Updates","href":"/sdks/dotnet/sse-live-updates"},{"title":".NET SDK - Stream Observer","href":"/sdks/dotnet/stream-observer"},{"title":".NET SDK - Workload Identity Federation","href":"/sdks/dotnet/workload-identity"}]},{"group":"Operations","pages":[{"title":".NET SDK - Logging","href":"/sdks/dotnet/logging"},{"title":".NET SDK - OpenTelemetry","href":"/sdks/dotnet/opentelemetry"},{"title":".NET SDK - Trimming and Native AOT","href":"/sdks/dotnet/trimming-and-aot"}]},{"group":"Background","pages":[{"title":".NET SDK - Design decisions and deviations","href":"/sdks/dotnet/design-decisions"},{"title":".NET SDK - Version history","href":"/sdks/dotnet/version-history"}]}]},{"group":"Spring Boot","icon":"java","pages":[{"title":"Spring Boot SDK","href":"/sdks/spring-boot/index"},{"title":"Spring Boot SDK - Installation","href":"/sdks/spring-boot/installation"},{"title":"Spring Boot SDK - Configuration","href":"/sdks/spring-boot/configuration"},{"title":"Spring Boot SDK - JSON values","href":"/sdks/spring-boot/json-values"},{"title":"Spring Boot SDK - API Reference","href":"/sdks/spring-boot/api-reference"},{"title":"Spring Boot SDK - Error Handling","href":"/sdks/spring-boot/error-handling"},{"title":"Spring Boot SDK - Logging","href":"/sdks/spring-boot/logging"},{"title":"Spring Boot SDK - SSE Live Updates","href":"/sdks/spring-boot/sse-live-updates"},{"title":"Spring Boot SDK - Stream Observer","href":"/sdks/spring-boot/stream-observer"},{"title":"Spring Boot SDK - Workload Identity Federation","href":"/sdks/spring-boot/workload-identity"},{"title":"Spring Boot SDK - Caching Behaviour","href":"/sdks/spring-boot/caching-behaviour"},{"title":"OpenFeature integration","href":"/sdks/spring-boot/openfeature"},{"title":"Spring Boot SDK - Version history","href":"/sdks/spring-boot/version-history"}]},{"group":"Kotlin","icon":"k","pages":[{"title":"Kotlin SDK","href":"/sdks/kotlin/index"},{"title":"Kotlin SDK - Installation","href":"/sdks/kotlin/installation"},{"title":"Kotlin SDK - Configuration","href":"/sdks/kotlin/configuration"},{"title":"Kotlin SDK - API Reference","href":"/sdks/kotlin/api-reference"},{"title":"Kotlin SDK - Logging","href":"/sdks/kotlin/logging"},{"title":"Kotlin SDK - Error Handling","href":"/sdks/kotlin/error-handling"},{"title":"Kotlin SDK - SSE Live Updates","href":"/sdks/kotlin/sse-live-updates"},{"title":"Kotlin SDK - Stream Observer","href":"/sdks/kotlin/stream-observer"},{"title":"Kotlin SDK - Workload Identity Federation","href":"/sdks/kotlin/workload-identity"},{"title":"Kotlin SDK - Caching Behaviour","href":"/sdks/kotlin/caching-behaviour"},{"title":"Kotlin SDK - Ktor Plugin","href":"/sdks/kotlin/ktor-plugin"},{"title":"OpenFeature integration","href":"/sdks/kotlin/openfeature"},{"title":"Kotlin SDK - Version history","href":"/sdks/kotlin/version-history"}]},{"group":"PHP","icon":"php","pages":[{"title":"PHP SDK","href":"/sdks/php/index"},{"title":"PHP SDK - Installation","href":"/sdks/php/installation"},{"title":"PHP SDK - Configuration","href":"/sdks/php/configuration"},{"title":"PHP SDK - API Reference","href":"/sdks/php/api-reference"},{"title":"PHP SDK - HTTP Client","href":"/sdks/php/http-client"},{"title":"PHP SDK - Error Handling","href":"/sdks/php/error-handling"},{"title":"PHP SDK - SSE Live Updates","href":"/sdks/php/sse-live-updates"},{"title":"PHP SDK - Caching Behaviour","href":"/sdks/php/caching-behaviour"},{"title":"PHP SDK - Workload Identity Federation","href":"/sdks/php/workload-identity"},{"title":"PHP SDK - Custom Logging","href":"/sdks/php/custom-logging"},{"title":"PHP SDK - Laravel","href":"/sdks/php/laravel"},{"title":"PHP SDK - OpenFeature Provider","href":"/sdks/php/openfeature"},{"title":"PHP SDK - Version history","href":"/sdks/php/version-history"}]},{"group":"Rust","icon":"rust","pages":[{"title":"Rust SDK","href":"/sdks/rust/index"},{"title":"Rust SDK - Installation","href":"/sdks/rust/installation"},{"title":"Rust SDK - Configuration","href":"/sdks/rust/configuration"},{"title":"Rust SDK - API reference","href":"/sdks/rust/api-reference"},{"title":"Rust SDK - Logging","href":"/sdks/rust/logging"},{"title":"Rust SDK - Error handling","href":"/sdks/rust/error-handling"},{"title":"Rust SDK - SSE live updates","href":"/sdks/rust/sse-live-updates"},{"title":"Rust SDK - Caching behaviour","href":"/sdks/rust/caching-behaviour"},{"title":"Rust SDK - Workload identity","href":"/sdks/rust/workload-identity"},{"title":"Rust SDK - OpenFeature","href":"/sdks/rust/openfeature"},{"title":"Rust SDK - Async migration","href":"/sdks/rust/async-migration"},{"title":"Rust SDK - Version history","href":"/sdks/rust/version-history"}]}]},{"group":"Browser SDKs","pages":[{"group":"Angular","icon":"angular","pages":[{"title":"Angular SDK","href":"/sdks/angular/index"},{"title":"Angular SDK - Installation","href":"/sdks/angular/installation"},{"title":"Angular SDK - Configuration","href":"/sdks/angular/configuration"},{"title":"Angular SDK - Caching behaviour","href":"/sdks/angular/caching-behaviour"},{"title":"Angular SDK - Custom logging","href":"/sdks/angular/custom-logging"},{"title":"Angular SDK - API reference","href":"/sdks/angular/api-reference"},{"title":"Angular SDK - Error handling","href":"/sdks/angular/error-handling"},{"title":"Angular SDK - Live updates","href":"/sdks/angular/sse-live-updates"},{"title":"Angular SDK - Stream observer","href":"/sdks/angular/stream-observer"},{"title":"Angular SDK - OpenFeature","href":"/sdks/angular/openfeature"}]},{"group":"React","icon":"react","pages":[{"group":"Getting started","pages":[{"title":"React SDK","href":"/sdks/react/index"},{"title":"React SDK - Getting started with Next.js","href":"/sdks/react/getting-started"},{"title":"React SDK - Installation","href":"/sdks/react/installation"}]},{"group":"Integration","pages":[{"title":"React SDK - Configuration","href":"/sdks/react/configuration"},{"title":"React SDK - OpenFeature","href":"/sdks/react/openfeature"}]},{"group":"Reference","pages":[{"title":"React SDK - API reference","href":"/sdks/react/api-reference"},{"title":"React SDK - Error handling","href":"/sdks/react/error-handling"},{"title":"React SDK - Caching behaviour","href":"/sdks/react/caching-behaviour"},{"title":"React SDK - Live updates","href":"/sdks/react/sse-live-updates"},{"title":"React SDK - Stream observer","href":"/sdks/react/stream-observer"}]},{"group":"Operations","pages":[{"title":"React SDK - Custom logging","href":"/sdks/react/custom-logging"}]},{"group":"Background","pages":[{"title":"React SDK - Design decisions","href":"/sdks/react/design-decisions"},{"title":"React SDK - Version history","href":"/sdks/react/version-history"}]}]},{"group":"Vue","icon":"vuejs","pages":[{"title":"Vue SDK","href":"/sdks/vue/index"},{"title":"Vue SDK - Installation","href":"/sdks/vue/installation"},{"title":"Vue SDK - Configuration","href":"/sdks/vue/configuration"},{"title":"Vue SDK - Caching behaviour","href":"/sdks/vue/caching-behaviour"},{"title":"Vue SDK - Custom logging","href":"/sdks/vue/custom-logging"},{"title":"Vue SDK - API reference","href":"/sdks/vue/api-reference"},{"title":"Vue SDK - Error handling","href":"/sdks/vue/error-handling"},{"title":"Vue SDK - Live updates","href":"/sdks/vue/sse-live-updates"},{"title":"Vue SDK - Stream observer","href":"/sdks/vue/stream-observer"},{"title":"Vue SDK - OpenFeature","href":"/sdks/vue/openfeature"}]}]},{"group":"OpenFeature Providers","pages":[{"group":"OpenFeature Web","icon":"flag","pages":[{"title":"OpenFeature Web Provider","href":"/sdks/openfeature-web-provider/index"},{"title":"OpenFeature Web Provider - Installation","href":"/sdks/openfeature-web-provider/installation"},{"title":"OpenFeature Web Provider - Usage","href":"/sdks/openfeature-web-provider/usage"},{"title":"OpenFeature Web Provider - Targeting","href":"/sdks/openfeature-web-provider/targeting"}]}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli"}]}]},"basePath":"","title":".NET SDK - Wiring the packages together - Westyx Nexus","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}