How do I wait until a console application is idle?

后端 未结 5 994
滥情空心
滥情空心 2020-12-16 22:06

I have a console application that starts up, hosts a bunch of services (long-running startup), and then waits for clients to call into it. I have integration tests that star

5条回答
  •  攒了一身酷
    2020-12-16 22:36

    Include an is ready check in the app's client interface, or have it return a not ready error if called before it's ready.

提交回复
热议问题