This documentation is archived and is not being maintained.

WorkflowHostingEndpoint.OnResolveBookmark Method

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
)

Parameters

inputs
Type: System.Object[]
The inputs to the service operation.
operationContext
Type: System.ServiceModel.OperationContext
The execution context of the service operation being invoked.
responseContext
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.
value
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(Object[], OperationContext, WorkflowHostingResponseContext, Object) 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];
    }
    else
    {
        throw new NotImplementedException(operationContext.IncomingMessageHeaders.Action);
    }
    return bookmark;
}


.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: