Notify when thread is complete, without locking calling thread

后端 未结 7 1313
既然无缘
既然无缘 2020-12-15 09:13

I am working on a legacy application that is built on top of NET 3.5. This is a constraint that I can\'t change. I need to execute a second thread to run a long running tas

7条回答
  •  半阙折子戏
    2020-12-15 09:33

    You could use the Observer Pattern, take a look here:

    http://www.dofactory.com/Patterns/PatternObserver.aspx

    The observer pattern will allow you, to notify other objects which were previously defined as observer.

提交回复
热议问题