set commandloader programmatically

Jun 11, 2014 at 4:13 PM

How should I specify commandloader in ServerConfig? should I do this:
            var sconfig = new ServerConfig
               CommandLoader = "mycommandloader"
           var sconfig = new ServerConfig
                CommandLoader = "GameServer.MyGameServer, GameServer"
if the first case, how should I config 'mycommandloader' programmatically?

Jun 11, 2014 at 4:34 PM
Could you start your server by Bootstrap?

What's your reason you don't want to use Bootstrap?
Jun 11, 2014 at 4:36 PM
Sorry, I just be aware you were talking about SuperWebSocket. You cannot define your command loader, or you will break websocket protocol.

What's your native requirement?
Jun 11, 2014 at 4:42 PM
for some reason, I can not use app.config to config websocket server and I want to use my own command loader to load command. I am not sure if I understood this right, when a message comes in, a websocket session will be created and a command loader will be instantiate and load command to process the incoming message, is that the case?
Jun 11, 2014 at 4:55 PM

There might be easier way. Why you cannot use app.config? BTW, you also can use configuration models to start bootstrap instead by real configuration file.