private static ActivityView BuildNoPersistScopeView(NoPersistScope source) { string activityId = ObjectIdManager.GetId(source); var view = new NoPersistScopeView(activityId) { ActivityName = source.DisplayName, }; return(view); }
private static ActivityInfo[] GetNoPersistScopeChildren(NoPersistScope activity) { var children = new List <ActivityInfo>(); if (activity.Body != null) { children.Add(new ActivityInfo(activity.Body, activity, "Body")); } return(children.ToArray()); }