<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Unity.Configuration"/> </configSections> <unity> <!--别名--> <alias alias="IOnInit" type="MultiLayout.UiModule.IOnInit, MultiLayout" /> <container> <!--客户端配置参数--> <register type="Misc.ParamDictionary, MISC" > <lifetime type="singleton" /> </register> <!--Json字典服务--> <register type="FLY.OBJComponents.IService.IJsonDistService,FLY.OBJComponents" mapTo="FLY.OBJComponents.Client.JsonDistServiceClient,FLY.OBJComponents"> <lifetime type="singleton" /> <constructor> <param name="serviceId" value="10000" /> <param name="connName" value="blowing" /> </constructor> </register> <!--客户端密码授权--> <register type="FLY.Thick.Base.UI.PasswordAuthorize, FLY.Thick.Base.UI"> <lifetime type="singleton" /> </register> <register type="IOnInit" mapTo="FLY.Thick.Base.UI.OnInit.OnInitOSK, FLY.Thick.Base.UI" name="onInitOsk"> <lifetime type="singleton" /> </register> </container> </unity> </configuration>