Intrinsic Component Configuration: Difference between revisions

From OPC Labs Knowledge Base
No edit summary
Line 1: Line 1:
[[Category:Configuration]] [[Category:High-Level Configuration]]
[[Category:Configuration]] [[Category:High-Level Configuration]]


* In ASP.NET Core: [https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/ Configuration in ASP.NET Core] (Microsoft).
* In .NET console apps: [https://docs.microsoft.com/en-us/dotnet/core/extensions/configuration Configuration in .NET] (Microsoft).


= Note on Programmatic Component Configuration =
= Note on Programmatic Component Configuration =
Line 8: Line 11:
# If the code that creates the component specifies a configuration interface ("programmatic component configuration"), using a constructor designed for IoC (Inversion of Control), the configuration given by the specified interface is applied (this, again, can involve multiple configuration providers in specific sequence). Only instance members of the component can be configured in this way.
# If the code that creates the component specifies a configuration interface ("programmatic component configuration"), using a constructor designed for IoC (Inversion of Control), the configuration given by the specified interface is applied (this, again, can involve multiple configuration providers in specific sequence). Only instance members of the component can be configured in this way.
If the programmatic component configuration is used, the initial values (of instance members) that the component will end up using may be different from what you specify using the built-in component configuration feature.
If the programmatic component configuration is used, the initial values (of instance members) that the component will end up using may be different from what you specify using the built-in component configuration feature.
= Component Support =
The built-in component configuration feature is supported by following components, and for the data members listed:
* {{Style=Identifier|EasyAEClient}}: {{Style=Identifier|AdaptableParameters}}, {{Style=Identifier|SharedParameters}}, {{Style=Identifier|InstanceParameters}}, {{Style=Identifier|IsolatedParameters}}.
* {{Style=Identifier|EasyDAClient}}: {{Style=Identifier|AdaptableParameters}}, {{Style=Identifier|SharedParameters}}, {{Style=Identifier|InstanceParameters}}, {{Style=Identifier|IsolatedParameters}}.
* {{Style=Identifier|EasyUAClient}}: {{Style=Identifier|AdaptableParameters}}, {{Style=Identifier|SharedParameters}}, {{Style=Identifier|InstanceParameters}}, {{Style=Identifier|IsolatedParameters}}.
* {{Style=Identifier|EasyUASubscriber}}: {{Style=Identifier|AdaptableParameters}}, {{Style=Identifier|SharedParameters}}, {{Style=Identifier|InstanceParameters}}, {{Style=Identifier|IsolatedParameters}}.

Revision as of 12:32, 18 January 2021


Note on Programmatic Component Configuration

The sequence of high-level component configuration evaluation is as follows:

  1. The values are set to their (constant, documented) defaults (both static and instance members).
  2. Built-in configuration, if present, is applied (this can involve multiple configuration providers in specific sequence). This affects both the static and instance members of the component.
  3. If the code that creates the component specifies a configuration interface ("programmatic component configuration"), using a constructor designed for IoC (Inversion of Control), the configuration given by the specified interface is applied (this, again, can involve multiple configuration providers in specific sequence). Only instance members of the component can be configured in this way.

If the programmatic component configuration is used, the initial values (of instance members) that the component will end up using may be different from what you specify using the built-in component configuration feature.

Component Support

The built-in component configuration feature is supported by following components, and for the data members listed:

  • EasyAEClient: AdaptableParameters, SharedParameters, InstanceParameters, IsolatedParameters.
  • EasyDAClient: AdaptableParameters, SharedParameters, InstanceParameters, IsolatedParameters.
  • EasyUAClient: AdaptableParameters, SharedParameters, InstanceParameters, IsolatedParameters.
  • EasyUASubscriber: AdaptableParameters, SharedParameters, InstanceParameters, IsolatedParameters.