/// <summary> /// 开始测试客户端 /// </summary> private static void StartTestClient() { ConsoleHelper.TestWriteLine("正在启动服务"); _testClient = TestClientHelper.ServiceProvider.GetService <ITestClient>(); _testClient.Init(); _testClient.Start(); }