Example #1
0
 internal AgentPassingTestServer(Action <TestMessages.TestMessageType1> action, string address, int port, string remoteAddress, int remotePort) : base()
 {
     if (action != null)
     {
         this.handler = new ActionExecutorMessageHandler(action);
     }
     else
     {
         this.handler = null;
     }
     this.address       = address;
     this.port          = port;
     this.remoteAddress = remoteAddress;
     this.remotePort    = remotePort;
 }
Example #2
0
 internal DisconnectTestServer(Action disconnectAction, string host, int port) : base(host, port)
 {
     this.handler = new ActionExecutorMessageHandler(disconnectAction);
 }