Create a composite activity that either
a) defines your cleanup code statically, or with some properties settable by the consumer, and then ends with a terminate shape built right in.
b) allows the user to add any thing they want to it (basic derivation from a sequence) and then add the terminate in behind the scenes using a toolboxitem perhaps.
Matt
See What You Can Learn -- http://www.pluralsight.com/courses/IntroducingWF.aspx |