protected override void Execute(NativeActivityContext context) { var bookMarkName = Guid.NewGuid().ToString(); var content = new WfContent() { Path = ContentPath.Get(context) }; notificationId.Set(context, context.GetExtension<ContentWorkflowExtension>().RegisterWait(content, bookMarkName)); context.CreateBookmark(bookMarkName, new BookmarkCallback(Continue)); }
protected override void Execute(NativeActivityContext context) { var bookMarkName = Guid.NewGuid().ToString(); var content = new WfContent() { Path = ContentPath.Get(context) }; notificationId.Set(context, context.GetExtension <ContentWorkflowExtension>().RegisterWait(content, bookMarkName)); context.CreateBookmark(bookMarkName, new BookmarkCallback(Continue)); }
protected WfContent GetStateContent(NativeActivityContext context) { var props = context.DataContext.GetProperties(); WfContent result = null; foreach (PropertyDescriptor prop in props) { var propName = prop.Name; if (propName == "StateContent" && prop.PropertyType == typeof(WfContent)) { result = (WfContent)prop.GetValue(context.DataContext);; break; } } return(result); }