在这种情况下,不要调用主范围中的接收活动,而必须在事件处理程序中引发一个错误。
In this case, instead of invoking the receive activity in the main scope, we have to raise a fault in the event handler.
没有这个接收活动,MainScope 可能会在事件处理程序启动前完成。
Without this receive activity, MainScope could finish before an event handler has been started.
在循环之后,定义接收活动,该活动将等待最后一个事件处理程序实例调用。
After the loop define a receive activity that waits until it is invoked by the last event handler.
应用推荐