WF4 Performance Tip–Cache Activities

When you create a new WorkflowConsole application you will see a line of code like this 1: WorkflowInvoker.Invoke(new Workflow1()); Looks innocent enough right? If you were only going to invoke this activity once this is not a problem.  But what if you were going to invoke this activity thousands of times? Suppose you wanted to…

3