supersocket中quickstart文件夹下的MultipleCommandAssembly的配置文件分析

首先确认下配置文件中的内容

第一部分configSections【需要注意的是name=superSocket】

<configSections>
    <section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine"/>
  </configSections>


第二部分appSettings【需要注意的是key=ServiceName】

 <appSettings>
    <add key="ServiceName" value="BroardcastService"/>
  </appSettings>

第三部分superSocket【】

<superSocket>
    <servers>
      <server name="SampleServer"
              serverType="SuperSocket.QuickStart.SampleServer.SampleAppServer, SuperSocket.QuickStart.SampleServer"
              ip="Any" port="2012">
        <commandAssemblies>
          <add assembly="SuperSocket.QuickStart.SampleServer.CommandAssemblyA"></add>
          <add assembly="SuperSocket.QuickStart.SampleServer.CommandAssemblyB"></add>
          <add assembly="SuperSocket.QuickStart.SampleServer.CommandAssemblyC"></add>
        </commandAssemblies>
      </server>
    </servers>
  </superSocket>

第四部分startup【创建项目的时候自带的,指示了.net的版本】

<startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>

第五部分runtime

<runtime>
    <gcServer enabled="true" />
  </runtime>

 

posted @ 2015-03-14 17:07  ChuckLu  阅读(712)  评论(0编辑  收藏  举报