<?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.PresentationV2.dll" moduleType="BYK.Common.PresentationModule, BYK.Common.PresentationV2" moduleName="BYK.Common.PresentationV2">
      <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="ServiceModule" type="BYK.Composite.Modularity.IServiceModule,BYK.Common.Infrastructure"/>
    </typeAliases>
    <containers>
      <container>
        <types>
          <type type="ServiceModule" name="BYK.Common.PresentationServiceModule" mapTo="BYK.Common.PresentationServiceModule,BYK.Common.PresentationV2">
            <lifetime type="singletonLifetime"/>
          </type>

          <type type="BYK.Services.ApplicationStateService,BYK.Common.PresentationV2" mapTo="BYK.Services.ApplicationStateService,BYK.Common.PresentationV2">
            <lifetime type="singletonLifetime"/>
          </type>

          <type type="BYK.Services.IMessageBoxService,BYK.Common.PresentationV2" mapTo="BYK.Services.MessageBoxUI,BYK.Common.PresentationV2">
            <lifetime type="singletonLifetime"/>
          </type>

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

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