MultiSync Thread Manager

Intent

Combine the Pollable and Notifying Thread Managers into one pattern that allows the client to use the best of both worlds.

Problem

Sometimes you need it all. Sometimes you not only want to be notified of completion of the operation but also want to be able periodically to check the status of the operation. In addition, sometimes you just do not know how the client will prefer to call your operation. In either situation, combining the Pollable Thread Manager and the Notifying Thread Manager gives the best of both worlds.

In processing a credit card transaction, for example, there are very distinct steps to be processed: verifying card information, contacting bank, etc. The application obviously has to know when ...

Get .NET Patterns: Architecture, Design, and Process now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.