IoC.Configuration
2.2.1
  • Sample Files
  • Type Binding In Modules
  • XML Configuration File
    • Assemblies and Probing Paths
    • Using Types in Configuration File
    • Parameter Serializers
    • Constructor Parameters
    • Settings
    • Specifying DI Manager
    • Dependency Injection
      • Modules
      • Service Bindings
        • Element service
        • Element selfBoundService
        • Element proxyService
        • Element valueImplementation
        • Implementation Type Constructor Parameters
        • Property Injection
      • Autogenerated Services
    • Value Initialization Elements
    • Startup Actions
    • Plugins
    • Additional Services Provided by IoC.Configuration
    • Troubleshooting Configuration File Errors
  • Loading IoC Configuration
  • Resolving Types
  • Application Integration
  • Trouble-shooting
IoC.Configuration
  • XML Configuration File
  • Dependency Injection
  • Service Bindings
  • View page source

Service Bindings

  • The element iocConfiguration/dependencyInjection/services lists service bindings that will be loaded into IoC container.

  • The element iocConfiguration/dependencyInjection/services has two types of child elements, service and selfBoundService.

  • Element service
    • Single Implementation
    • Multiple Implementations
    • Binding Scope
  • Element selfBoundService
    • Binding Scope
  • Element proxyService
  • Element valueImplementation
    • Example 1: Using valueImplementation to bind System.Int32 to a setting value
    • Example 2: Using valueImplementation to bind System.Double to 3.5
    • Example 3: Using valueImplementation to bind service to class member
    • Example 4: Using valueImplementation to bind service to collection
  • Implementation Type Constructor Parameters
    • Element parameters
    • Example 1
    • Example 2
    • Example 3
  • Property Injection
    • Example
Previous Next

© Copyright 2018, Artak Hakobyan.

Built with Sphinx using a theme provided by Read the Docs.