app.config

来自「应用框架的设计与实现的源代码(SAF) 《应用框架的设计与实现》随书源码」· CONFIG 代码 · 共 27 行

CONFIG
27
字号
<configuration>
	<configSections>
		<section name="Framework" type="SAF.Configuration.ConfigurationHandler,SAF.Configuration" />
		<section name="Application" type="SAF.Configuration.ConfigurationHandler,SAF.Configuration" />
	</configSections>
	<system.runtime.remoting>
	<application>
         <service>
            <wellknown 
               mode="Singleton" 
               type="TestConcreteFactory.ConcreteRemoteProductFactory,TestConcreteFactory" 
               objectUri="ClassFactory.rem" />
         </service>
         <channels>
            <channel ref="http" port="8989"/>
         </channels>
      </application>

	</system.runtime.remoting>
	<Framework type="SAF.Configuration.ConfigurationManager,SAF.Configuration">
		<SAF.ClassFactory>
			<Class name="ProductFactory-A" type="TestConcreteFactory.ConcreteProductFactory,TestConcreteFactory" />
			<Class name="ProductFactory-B" type="TestConcreteFactory.ConcreteNewProductFactory,TestConcreteFactory" />
			<Class name="Remote-ProductFactory-C" location="http://localhost:8989/ClassFactory.rem" type="TestConcreteFactory.ConcreteRemoteProductFactory,TestConcreteFactory" />
		</SAF.ClassFactory>
	</Framework>
</configuration>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?