<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="Services" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
    <section name="Modules" type="Microsoft.Practices.Composite.Modularity.ModulesConfigurationSection, Microsoft.Practices.Composite"/>
  </configSections>

  <!-- *********************************************************************************************************
    Modules
  **************************************************************************************************************-->
  <Modules>
    <module assemblyFile="BYK.Common.Infrastructure.dll" moduleType="BYK.Common.InfrastructureModule, BYK.Common.Infrastructure" moduleName="BYK.Common.Infrastructure">
      <dependencies>
        <!--<dependency moduleName="BYK.Common.Infrastructure"/>-->
      </dependencies>
    </module>
  </Modules>

  <!-- *********************************************************************************************************
    Services
  **************************************************************************************************************-->
  <Services>
    <typeAliases>
      <!-- Lifetime manager types -->
      <typeAlias alias="singletonLifetime" type="Microsoft.Practices.Unity.ContainerControlledLifetimeManager,Microsoft.Practices.Unity"/>
      <typeAlias alias="UnityContainer" type="Microsoft.Practices.Unity.UnityContainer,Microsoft.Practices.Unity"/>
      <typeAlias alias="IUnityContainer" type="Microsoft.Practices.Unity.IUnityContainer,Microsoft.Practices.Unity"/>
      <typeAlias alias="ServiceModule" type="BYK.Composite.Modularity.IServiceModule,BYK.Common.Infrastructure"/>
    </typeAliases>
    <containers>
      <container>
        <types>
          
          <type type="BYK.Common.Health.IHealthMonitorFactory,BYK.Common.Infrastructure" name="NetworkMonitor" mapTo="BYK.Common.Health.NetworkFactory,BYK.Common.Infrastructure">
            <lifetime type="singletonLifetime"/>
          </type>
          
          
          <type type="BYK.Common.Health.IHealthMonitorFactory,BYK.Common.Infrastructure" name="StammdatenTester" mapTo="BYK.Common.Health.FileFactory,BYK.Common.Infrastructure">
            <lifetime type="singletonLifetime"/>
            <typeConfig>
              <constructor>
                <param name="container" parameterType="IUnityContainer">
                  <dependency/>
                </param>
                <param name="appSettingKey" parameterType="System.String">
                  <value value="StammDB"/>
                </param>
                <param name="mustBeWritable" parameterType="System.String">
                  <value value="True"/>
                </param>
                <param name="tags" parameterType="System.String">
                  <value value="ColorManagement;Database;OrganizerManagement"/>
                </param>
              </constructor>
            </typeConfig>
          </type>

          <type type="BYK.Common.Health.IHealthMonitorFactory,BYK.Common.Infrastructure" name="UsbTreiberTester" mapTo="BYK.Common.Health.FileFactory,BYK.Common.Infrastructure">
            <lifetime type="singletonLifetime"/>
            <typeConfig>
              <constructor>
                <param name="container" parameterType="IUnityContainer">
                  <dependency/>
                </param>
                <param name="appSettingKey" parameterType="System.String">
                  <value value="$system$\ftd2xx.dll"/>
                </param>
                <param name="mustBeWritable" parameterType="System.String">
                  <value value="false"/>
                </param>
                <param name="tags" parameterType="System.String">
                  <value value="DeviceManagement"/>
                </param>
              </constructor>
            </typeConfig>
          </type>
          
          <type type="ServiceModule" name="BYK.Common.InfrastructureServiceModule" mapTo="BYK.Common.InfrastructureServiceModule,BYK.Common.Infrastructure">
            <lifetime type="singletonLifetime"/>
            <!-- GEHT NICHT, KANN KEIN BOOL!! bescheuert.
            <typeConfig>
              <property name="UseHealthSystem" propertyType="System.Boolean">
                <value value="True" />
              </property>
            </typeConfig>-->
          </type>
        </types>

        <instances>
        </instances>
      </container>
    </containers>
  </Services>

<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
