XML Configuration File¶
An examples of XML configuration file can be found at IoCConfiguration_Overview.xml.
The sections below describe various aspects of configuration file.
- Assemblies and Probing Paths
- Using Types in Configuration File
- Parameter Serializers
- Constructor Parameters
- Settings
- Specifying DI Manager
- Dependency Injection
- Modules
- Service Bindings
- Autogenerated Services
- Value Initialization Elements
- Predefined Type Value Initializer Elements
- object element
- injectedObject element
- collection element
- Example 1: Using collection element to specify constructed parameter value in service implementation
- Example 2: Using collection element to specify injected property value
- Example 3: Using collection element to specify a returned value for auto-generated method
- Example 4: Using collection element to provide a service implementation
- constructedValue element
- Example 1: Using constructedValue element to define a setting of type IoC.Configuration.Tests.ConstructedValue.Services.AppInfo
- Example 2: Using constructedValue element to define a service implementation
- Example 3: Using constructedValue element to specify a value returned in autoProperty element
- Example 4: Using constructedValue element to specify a value returned in autoMethod element
- Example 5: Using constructedValue element as a parameter value in another constructedValue element
- settingValue element
- Example 1: Using settingValue element to provide a service implementation
- Example 2: Using settingValue element in collection element
- Example 3: Using settingValue element to specify constructor parameter and injected property values
- Example 4: Referencing setting values in autoMethod and autoProperty elements
- Example 5: Referencing setting value in if element under autoMethod element
- classMember element
- Referencing non-static and non-constant class members
- Example 1: Using classMember to provide a service implementation
- Example 2: Using classMember in collection element
- Example 3: Using classMember to specify a returned value in autoProperty element
- Example 3: Referencing class member in if element under autoMethod element
- Example 3: Using classMember to call methods with parameters
- parameterValue element
- Startup Actions
- Plugins
- Additional Services Provided by IoC.Configuration
- Troubleshooting Configuration File Errors