Export (0) Print
Expand All

WorkflowHostingEndpoint.OnResolveBookmark Method

.NET Framework 4.6 and 4.5

Override to return a bookmark to be resumed on the workflow instance.

Namespace:  System.ServiceModel.Activities
Assembly:  System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)

protected internal virtual Bookmark OnResolveBookmark(
	Object[] inputs,
	OperationContext operationContext,
	WorkflowHostingResponseContext responseContext,
	out Object value


Type: System.Object[]

The inputs to the service operation.

Type: System.ServiceModel.OperationContext

The execution context of the service operation being invoked.

Type: System.ServiceModel.Activities.WorkflowHostingResponseContext

The WorkflowHostingEndpointResponseContext object that can be used to send replies back to the message source for a request/reply contract.

Type: System.Object

A value to be passed back to the workflow instance when the bookmark is resumed

Return Value

Type: System.Activities.Bookmark
A bookmark.

The following example shows how to implement the OnResolveBookmark method.

protected override Bookmark OnResolveBookmark(object[] inputs, OperationContext operationContext, WorkflowHostingResponseContext responseContext, out object value)
    Bookmark bookmark = null;
    value = null;
    if (operationContext.IncomingMessageHeaders.Action.EndsWith("ResumeBookmark"))
        //bookmark name supplied by client as input to IWorkflowCreation.ResumeBookmark
        bookmark = new Bookmark((string)inputs[1]);
        //value supplied by client as argument to IWorkflowCreation.ResumezBookmark 
        value = (string) inputs[2];
        throw new NotImplementedException(operationContext.IncomingMessageHeaders.Action);
    return bookmark;

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft