root.config 1.35 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Unity.Configuration" />
  </configSections>
  <unity>
    <assembly name="FLY.Thick.Base.UI" />
    <namespace name="FLY.Thick.Base.UI" />
    <namespace name="FLY.Thick.Base.UI.OnInit" />
    <alias alias="IJsonDistService" type="FLY.OBJComponents.IService.IJsonDistService, FLY.OBJComponents" />
    <alias alias="JsonDistServiceClient" type="FLY.OBJComponents.Client.JsonDistServiceClient,FLY.OBJComponents" />
    <alias alias="IOnInit" type="MultiLayout.UiModule.IOnInit, MultiLayout" />
    <alias alias="ParamDictionary" type="Misc.ParamDictionary, MISC" />
    <container>
      <register type="ParamDictionary">
        <lifetime type="singleton" />
      </register>
      <register type="PasswordAuthorize">
        <lifetime type="singleton" />
      </register>
      <register type="IOnInit" mapTo="OnInitOSK" name="osk">
        <lifetime type="singleton" />
      </register>
      <register type="IJsonDistService" mapTo="JsonDistServiceClient">
        <lifetime type="singleton" />
        <constructor>
          <param name="serviceId" value="10000" />
          <param name="connName" value="blowing" />
        </constructor>
      </register>
    </container>
  </unity>
</configuration>