<?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" /> <container> <register type="WarningSystem2ServiceClientWithName" name="w00"> <lifetime type="singleton" /> <constructor> <param name="serviceId" value="20000" /> <param name="connName" value="blowing" /> <param name="devName" value="测厚仪" /> </constructor> </register> <register type="WarningSystem2ServiceClientWithName" name="w01"> <lifetime type="singleton" /> <constructor> <param name="serviceId" value="20000" /> <param name="connName" value="airRing" /> <param name="devName" value="风环" /> </constructor> </register> <register type="WarningSystem2ServiceClientWithName" name="w02"> <lifetime type="singleton" /> <constructor> <param name="serviceId" value="20000" /> <param name="connName" value="weighter" /> <param name="devName" value="称重" /> </constructor> </register> <register type="WarningSystem2ServiceClientWithName" name="w03"> <lifetime type="singleton" /> <constructor> <param name="serviceId" value="20000" /> <param name="connName" value="ibc" /> <param name="devName" value="IBC" /> </constructor> </register> <register type="WarningSystem2ServiceClientWithName" name="w04"> <lifetime type="singleton" /> <constructor> <param name="serviceId" value="20000" /> <param name="connName" value="winder" /> <param name="devName" value="收卷" /> </constructor> </register> <register type="WarningSystem2ServiceClientWithName" name="w05"> <lifetime type="singleton" /> <constructor> <param name="serviceId" value="20000" /> <param name="connName" value="downBlowing" /> <param name="devName" value="下吹" /> </constructor> </register> </container> </unity> </configuration>