The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
WorkflowHostingEndpoint::OnResolveBookmark Method (array<Object^>^, OperationContext^, WorkflowHostingResponseContext^, Object^%)
.NET Framework (current version)
Override to return a bookmark to be resumed on the workflow instance.
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
public protected: virtual Bookmark^ OnResolveBookmark( array<Object^>^ inputs, OperationContext^ operationContext, WorkflowHostingResponseContext^ responseContext, [OutAttribute] Object^% value )
Parameters
- inputs
-
Type:
array<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 WorkflowHostingResponseContext 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
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]; } else { throw new NotImplementedException(operationContext.IncomingMessageHeaders.Action); } return bookmark; }
.NET Framework
Available since 4.0
Available since 4.0
Show: