Yesterday I posted a base class for Async Activities that buried all the plumbing. However, looking at the zip I only had the binary for the base class and the test harness. Here is the zipped code.
AsyncActivityBaseClass12.zip (69.71 KB)
In addition Rod gave me some feedback (for example making the base class abstract messed up the design time view for the derived activity). In the light of that and other ideas I have made some changes:
- The base class is now concrete and so designer view now works for derived classes
- If you don't supply a queue name then the queue name defaults to the QualifiedName of the activity
- Cancellation support is now embedded in the base class.
- There is a new override called DoAsyncTeardown to allow you to deallocate any resources you allocated in DoAsyncSetup
I hope someone finds this useful