Re: [topshelf-discuss] Synchronize IBusControl.Stop in MT3

53 views
Skip to first unread message

Chris Patterson

unread,
Oct 5, 2015, 10:02:08 PM10/5/15
to topshelf...@googlegroups.com
It should be awaiting the shut down of the bus when you call Stop(), as the await work is done internally and the call doesn't return until all endpoints are stopped.


On Mon, Oct 5, 2015 at 6:40 PM, Scott McFadden <scott.kenda...@gmail.com> wrote:
I see that IBusControl.Stop looks like it may do some async work.  However, I want to wait for Stop to finish prior to continuing execution.  I noticed Stop returns void instead of Task.  Don't want to start my app tear down processed until  until Stop has completed.  How can I synchronize my code to block until IBusControl.Stop has finished?

thanks

scott

--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages