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

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>

 

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-05-27
  • 2021-04-12
猜你喜欢
  • 2022-01-06
  • 2021-09-04
  • 2021-04-04
  • 2022-12-23
  • 2021-08-25
  • 2021-09-26
相关资源
相似解决方案