In the previous recipe, we saw how the persisted instances can be queried via Windows Server AppFabric Dashboard. Although AppFabric Dashboard offers a simple and easy user experience, it is not the only way to query persisted workflow instances. In this recipe, we will learn about the Windows Server AppFabric's Instance Query Provider API, which can also be used to query persisted workflows.
Note
In fact, AppFabric Dashboard internally invokes Windows Server AppFabric cmdlets. And cmdlets internally instantiate and invoke the Windows Server AppFabric's API. Eventually, API is at the heart of the implementation and offers consistent feature set across AppFabric cmdlets and AppFabric Dashboard.
We will use the same Workflow Sample solution that we used in the previous recipe. The sample workflow that we are using is part of Windows Server AppFabric Samples and is available in the yourSamplesDirectory\Hosting\InstanceQueryAndControl
folder...