br> <section name="Websharp.Enterprise" type="Websharp.Enterprise.EnterpriseConfigHandler,Websharp" /> configSections> 然后,在Websharp.Enterprise节中,注册不同的服务定位器。如果你自己扩展了这个框架,添加了新的服务定位器,也在这里注册。其中,locator属性的格式是:“类全名,Assembly名”。 服务定位器都是Singleton的。下面是目前WSL支持的服务定位器的注册的信息: <Websharp.Enterprise> <ServiceTypes> <ServiceType name="LocalAssembly" locator="Websharp.Enterprise.LocalAssemblyLocator,Websharp" /> <ServiceType name="WebService" locator="Websharp.Enterprise.WebServiceLocator,Websharp" /> <ServiceType name="DotNetRemoting" locator="Websharp.Enterprise.DotNetRemotingLocator,Websharp"页码:[1] [2] [3] [4] [5] [6] [7] [8] 第3页、共8页 |