Related to this question.
I understand how to implement versioning of workflows using WorkflowApplication
. If you keep the original XAML definition for older versions of your workflow around, you can load them using the right WorkflowApplication
constructor.
How could you ensure that WorkflowServiceHost
uses the correct workflow definition when you want to host your workflows in IIS?
There is a WorkflowServiceHost
constructor that you can use to load a workflow definition, but when you are hosting inside IIS through a XAMLX file, you do not call WorkflowServiceHost
yourself, this is handled somehow by IIS. So how do I ensure that the correct workflow definition is loaded for the right version of my workflow?