winder.service.config 1.86 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?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.Winder" />
    <namespace name="FLY.Winder.IService" />
    <namespace name="FLY.Winder.Client" />
    <namespace name="FLY.Winder.Server.Model" />
    <assembly name="FLY.OBJComponents" />
    <namespace name="FLY.OBJComponents.IService" />
    <namespace name="FLY.OBJComponents.Client" />
    <alias alias="WarningReasonWindow" type="FLY.Thick.Base.UI.WarningReasonWindow,FLY.Thick.Base.UI" />
    <container>
潘栩锋's avatar
潘栩锋 committed
16
      <register type="IWinderSystemService" mapTo="WinderSystemServiceClient">
潘栩锋's avatar
潘栩锋 committed
17 18 19 20 21 22
        <lifetime type="singleton" />
        <constructor>
          <param name="serviceId" value="33000" />
          <param name="connName" dependencyName="cn4" />
        </constructor>
      </register>
潘栩锋's avatar
潘栩锋 committed
23
      <register type="IBuffer[Db_WinderInfo]" mapTo="BufferServiceClient[Db_WinderInfo]">
潘栩锋's avatar
潘栩锋 committed
24 25 26 27 28 29
        <lifetime type="singleton" />
        <constructor>
          <param name="serviceId" value="33004" />
          <param name="connName" dependencyName="cn4" />
        </constructor>
      </register>
潘栩锋's avatar
潘栩锋 committed
30
      <register type="IWarningService" mapTo="WarningServiceClient" name="winderWarningService">
潘栩锋's avatar
潘栩锋 committed
31 32 33 34 35 36
        <lifetime type="singleton" />
        <constructor>
          <param name="serviceId" value="20000" />
          <param name="connName" dependencyName="cn4" />
        </constructor>
      </register>
潘栩锋's avatar
潘栩锋 committed
37
      <register type="WarningReasonWindow" name="winderWarningReasonWindow">
潘栩锋's avatar
潘栩锋 committed
38 39
        <lifetime type="singleton" />
        <constructor>
潘栩锋's avatar
潘栩锋 committed
40
          <param name="warningService" dependencyName="winderWarningService" />
潘栩锋's avatar
潘栩锋 committed
41 42 43 44 45 46
          <param name="size" value="100" />
        </constructor>
      </register>
    </container>
  </unity>
</configuration>