示例#1
0
        public TranslationTester()
        {
            localGateway = new APITranslationServer(server, new IPEndPoint(IPAddress.Loopback, 12000), api);
            running      = localGateway.Run();
            var args = new APITranslatorClient.ConnectionArgs {
                Address = IPAddress.Loopback, Port = 12000, Self = client, ServerID = server.ID
            };

            remoteGateway = APITranslatorClient.CreateAndConnect(args).Result;
        }
示例#2
0
 /// <summary>
 /// Starts the gateway.
 /// </summary>
 public Task Run()
 {
     return(gateway.Run());
 }