Chris Farmer
Chris Farmer

Reputation: 25415

Implementing a custom Windows Workflow activity that executes an asynchronous operation

I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itself runs another process asynchronously and may take anywhere from seconds to many hours to complete. This library offers the ability for me to either poll for the method result or to subscribe to an event that indicates its completion. In my non-workflow apps, I typically just subscribe to that event, but that doesn't seem to be reasonable in the workflow case. I'm also not sure exactly how to best implement a polling scheme. Can someone recommend some pointers to similar problems?

Upvotes: 0

Views: 1082

Answers (1)

rjrapson
rjrapson

Reputation: 1997

Kirk Allen Evans wrote an interesting blog about this with some pretty good code examples.

Upvotes: 1

Related Questions