Bookmark Resolver for WorkflowHostingEndpoint
The CreationEndpoint sample demonstrates how the WorkflowHostingEndpoint can be used with WorkflowServiceHost to create workflow instances.
Demonstrates
WorkflowHostingEndpoint, WorkflowServiceHost
Discussion
This sample uses the WorkflowHostingEndpoint to create workflow instances hosted using WorkflowServiceHost. WorkflowHostingEndpoint is an extensibility point for WorkflowServiceHost that can be used in the following scenarios:
Creating new workflow instances.
Resuming bookmarks on workflow instance hosted in a WorkflowServiceHost.
The sample endpoint that is included exposes a contract that provides operations to create a workflow and returns the instance ID or creates an instance with a specific ID. The sample console application creates a WorkflowServiceHost instance with a workflow definition and adds a CreationEndpoint
to the host. It then calls the Create
operation on the endpoint to create a new workflow instance.
Set up, build, and run the sample
Build the solution.
Run the application. The
CreationEndpoint
console shows a message that includes the instance ID when the workflow instance is created. The message "Hello World!" is printed by the workflow instance.