Extension Methods: Configuration / Updates¶
TL;DR — This page mirrors the
Configuration / Updatessection from Extension Methods as a focused reference.
When to use¶
Use this page when you need the focused member list, signatures, and source notes for this section without scanning the full parent reference.
C# (CAC) usage¶
UpdateConfiguration<TConfiguration>¶
Source file, signature, and docstring
Member ConfigurationUpdateExtensions.UpdateConfiguration<TConfiguration>(this TConfiguration? currentConfiguration, TConfiguration incomingConfiguration)
Kind function
Declaring Type ConfigurationUpdateExtensions (extension type)
Source File QaaS.Framework.Configurations/ConfigurationUpdateExtensions.cs
Signature
public static TConfiguration UpdateConfiguration<TConfiguration>(this TConfiguration? currentConfiguration, TConfiguration incomingConfiguration) where TConfiguration : class
Docstring
Merges a typed configuration patch into the current configuration. When both configurations share the same runtime type, omitted fields are preserved from the current value. When the runtime type changes, the incoming configuration replaces the current one.
Use this helper when a partially populated typed configuration object should override only the supplied fields while preserving the rest of the existing configuration state.
UpdateConfiguration<TConfiguration>¶
Source file, signature, and docstring
Member ConfigurationUpdateExtensions.UpdateConfiguration<TConfiguration>(this TConfiguration? currentConfiguration, object incomingConfiguration)
Kind function
Declaring Type ConfigurationUpdateExtensions (extension type)
Source File QaaS.Framework.Configurations/ConfigurationUpdateExtensions.cs
Signature
public static TConfiguration UpdateConfiguration<TConfiguration>(this TConfiguration? currentConfiguration, object incomingConfiguration) where TConfiguration : class
Docstring
Merges an object-shaped configuration patch into the current typed configuration. Fields omitted from incomingConfiguration are preserved from the current configuration. Fields explicitly set to null in the patch clear the existing value. When the current configuration is missing, the incoming object is bound to when possible.
Use this overload when the patch comes from an anonymous object, JSON-like payload, or any other object whose shape matches part of the target configuration contract.
UpdateConfiguration¶
Source file, signature, and docstring
Member ConfigurationUpdateExtensions.UpdateConfiguration(this IConfiguration? currentConfiguration, object incomingConfiguration)
Kind function
Declaring Type ConfigurationUpdateExtensions (extension type)
Source File QaaS.Framework.Configurations/ConfigurationUpdateExtensions.cs
Signature
public static IConfiguration UpdateConfiguration(this IConfiguration? currentConfiguration, object incomingConfiguration)
Docstring
Merges an object-shaped configuration patch into the current IConfiguration tree. Fields omitted from incomingConfiguration are preserved from the current configuration. Fields explicitly set to null in the patch clear the existing value.
Use this overload when configuration is already represented as an IConfiguration tree and should be updated without first binding it to a typed configuration object.
Edge cases¶
- This page is generated from the parent reference section; edit the source XML docs or generator when content needs to change.
- If a linked source member is renamed, regenerate the reference docs before changing prose by hand.