(WF4) They have AsyncCodeActivity, why not AsyncNativeActivity?

AsyncCodeActivity is a nice class for wrapping calls to asynchronous APIs and turning them into activities that can run super-efficiently. But! There are a few limitations to being a subclass of AsyncCodeActivity when compared to NativeActivity. Such as? Here’s a rough list: you can’t have any child activities you can’t create or access Execution Properties (sometimes useful…

4

Getting Your Workflow Instance

There are a few things I feel like I should be able to do inside of a NativeActivity, but can’t – easily. Luckily, there is a way. #1 – Resuming bookmarks – where is my workflow Instance? You can resume a bookmark from within NativeActivity.Execute() by calling NativeActivityContext.ResumeBookmark(). But once Execute() returns, the NativeActivityContext is…

0