Esempio n. 1
0
        void OnEndResumeBookmark(IAsyncResult ar)
        {
            object[]            asyncState = ar.AsyncState as object[];
            WorkflowApplication instance   = asyncState[0] as WorkflowApplication;
            string bookmarkName            = asyncState[1] as string;

            BookmarkResumptionResult result = instance.EndResumeBookmark(ar);

            if (result != BookmarkResumptionResult.Success)
            {
                //it is possible the bookmark has been removed by some other event in the workflow
                //but that event will update the host - no need to do it here
                this.hostView.OutputWriter.WriteLine("Could not resume bookmark: {0} on instance {1}", bookmarkName, instance.Id);
            }
        }