weighter2.service.config 1.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?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.Weight2" />
    <namespace name="FLY.Weight2.IService" />
    <namespace name="FLY.Weight2.Client" />
    <namespace name="FLY.Weight2.Server.Model" />
    <assembly name="FLY.OBJComponents" />
    <namespace name="FLY.OBJComponents.IService" />
    <namespace name="FLY.OBJComponents.Client" />
    <assembly name="FLY.Weight2.UI.Client" />
    <namespace name="FLY.Weight2.UI.Client" />
    <container>
      <register type="IWeightSystemService" mapTo="WeightSystemServiceClientWithColor">
        <lifetime type="singleton" />
        <constructor>
          <param name="serviceId" value="35000" />
          <param name="connName" dependencyName="cn2" />
        </constructor>
      </register>
24
      <register type="IBulkDbFlowService" mapTo="BulkDbFlowServiceClient">
25 26 27 28 29 30
        <lifetime type="singleton" />
        <constructor>
          <param name="serviceId" value="35004" />
          <param name="connName" dependencyName="cn2" />
        </constructor>
      </register>
31
      <register type="IWarningSystem2Service" mapTo="WarningSystem2ServiceClient" name="weighterWarningService">
32 33 34 35 36 37
        <lifetime type="singleton" />
        <constructor>
          <param name="serviceId" value="20000" />
          <param name="connName" dependencyName="cn2" />
        </constructor>
      </register>
38 39 40
    </container>
  </unity>
</configuration>