Custom CommandLoader

Mar 6, 2013 at 1:40 PM
Hello,

is there a way to easily replace the ReflectCommandLoader with my custom implementation (which uses an IoC container) ?

Thanks
Coordinator
Mar 6, 2013 at 11:30 PM
Edited Mar 6, 2013 at 11:30 PM
Yes, you can customize the command loader like the configuration code below:
<superSocket>
    <servers>
      <server name="IronPythonServer"
          serverTypeName="IronPythonService"
          ip="Any" port="2012"
          maxConnectionNumber="50"
          commandLoader="dynamicCommandLoader">
      </server>
    </servers>
    <serverTypes>
      <add name="IronPythonService"
       type="SuperSocket.QuickStart.IronSocketServer.DynamicAppServer, SuperSocket.QuickStart.IronSocketServer" />
    </serverTypes>
    <commandLoaders>
        <add name="dynamicCommandLoader" type="SuperSocket.Dlr.DynamicCommandLoader, SuperSocket.Dlr"/>
    </commandLoaders>
  </superSocket>
http://supersocket.codeplex.com/wikipage?title=Implement%20Your%20Commands%20by%20Dynamic%20Language
Mar 7, 2013 at 1:25 PM
Nice! Thanks!