public DthTestServer() { Port = FindFreePort(); HostId = Guid.NewGuid().ToString(); _program = new ProjectModelServerCommand(Port, HostId); _thread = new Thread(() => { _program.OpenChannel(); }) { IsBackground = true }; _thread.Start(); }