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; }
/// <summary> /// Starts the gateway. /// </summary> public Task Run() { return(gateway.Run()); }