Sunday, December 02, 2007

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

 | 
Sunday, December 02, 2007 11:19:15 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]TrackbackTracked by:
"Async Activity Helper Update" (.NET Meanderings) [Trackback]
http://www.dotnetconsult.co.uk/weblog2/PermaLink,guid,400f2d30-6402-438c-b20f-d0... [Pingback]
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):