Beispiel #1
0
        private IDisposable StartClients()
        {
            var binding = new NetTcpBinding() { Security = { Mode = SecurityMode.None } };

            var clientmanager = new DuplexChannelManager(
                ConnectArguments.ConnectionLimit,
                ConnectArguments.MessageRate,
                binding,
                ConnectArguments.CreateNetTcpAddress(),
                CreateMessage(binding));

            return clientmanager.Start();
        }
Beispiel #2
0
 public override void Run()
 {
     if (ConnectArguments.IsServer())
     {
         _server = new TcpChannelServer(ConnectArguments.CreateNetTcpAddress());
         _server.StartServer();
     }
     else
     {
         _clients  = new DuplexChannelManager(ConnectArguments.ConnectionLimit,
                                                 ConnectArguments.MessageRate,
                                                 new NetTcpBinding() { Security = { Mode = SecurityMode.None } },
                                                 ConnectArguments.CreateNetTcpAddress());
         _clients.Start();
     }
 }
Beispiel #3
0
 public override void Run()
 {
     if (ConnectArguments.IsServer())
     {
         _server = new TcpChannelServer(ConnectArguments.CreateNetTcpAddress());
         _server.StartServer();
     }
     else
     {
         _clients = new DuplexChannelManager(ConnectArguments.ConnectionLimit,
                                             ConnectArguments.MessageRate,
                                             new NetTcpBinding()
         {
             Security = { Mode = SecurityMode.None }
         },
                                             ConnectArguments.CreateNetTcpAddress());
         _clients.Start();
     }
 }
Beispiel #4
0
        private IDisposable StartClients()
        {
            var binding = new NetTcpBinding() { Security = { Mode = SecurityMode.None } };

            var clientmanager = new DuplexChannelManager(
                ConnectArguments.ConnectionLimit,
                ConnectArguments.MessageRate,
                binding,
                ConnectArguments.CreateNetTcpAddress(),
                CreateMessage(binding));

            return clientmanager.Start();
        }