private ClientLauncher( ClientService clientService, JavaClientLauncher javaClientLauncher, REEFFileNames reefFileNames, IConfigurationSerializer configurationSerializer, DriverClientParameters driverRuntimeProto, IRuntimeProtoProvider runtimeProtoProvider) { _clientService = clientService; _javaClientLauncher = javaClientLauncher; _reefFileNames = reefFileNames; _configurationSerializer = configurationSerializer; _driverClientConfiguration = driverRuntimeProto.Proto; runtimeProtoProvider.SetParameters(_driverClientConfiguration); _grpcServer = new Server { Services = { BridgeClient.BindService(clientService) }, Ports = { new ServerPort("localhost", 0, ServerCredentials.Insecure) } }; _grpcServer.Start(); Log.Log(Level.Info, "Server port any {0}", _grpcServer.Ports.Any()); foreach (var serverPort in _grpcServer.Ports) { Log.Log(Level.Info, "Server port {0}", serverPort.BoundPort); _grpcServerPort = serverPort.BoundPort; } }