System\Activities\Activity.cs (19)
230this.displayName = ActivityUtilities.GetDisplayName(this);
762ActivityUtilities.Add(ref newList, this.tempValidationErrors[i]);
957ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityDelegateHandlersMustBeDeclarations(this.DisplayName, activityDelegate.Owner.DisplayName, this.Parent.DisplayName), false, activityDelegate.Owner));
1012ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityCannotReferenceItself(this.DisplayName), parent));
1018ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.RootActivityCannotBeReferenced(this.DisplayName, parent.DisplayName), parent));
1024ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityCannotBeReferencedWithoutTarget(this.DisplayName, parent.DisplayName, this.Parent.DisplayName), parent));
1030ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityCannotBeReferenced(this.DisplayName, parent.DisplayName, referenceTarget.DisplayName, this.Parent.DisplayName), false, parent));
1092ActivityUtilities.Add(ref validationErrors, new ValidationError(
1466ActivityUtilities.TryGetArgumentDirectionAndType(propertyDescriptor.PropertyType, out direction, out argumentType))
1481ActivityUtilities.IsVariableType(propertyDescriptor.PropertyType))
1490ActivityUtilities.IsActivityType(propertyDescriptor.PropertyType))
1496ActivityUtilities.IsActivityDelegateType(propertyDescriptor.PropertyType))
1516else if (ActivityUtilities.IsArgumentDictionaryType(propertyDescriptor.PropertyType, out innerType))
1526if (!foundMatch && ActivityUtilities.IsKnownCollectionType(propertyDescriptor.PropertyType, out innerType))
1529ActivityUtilities.IsVariableType(innerType))
1536ActivityUtilities.IsActivityType(innerType, false))
1543ActivityUtilities.IsActivityDelegateType(innerType))
1890if (ActivityUtilities.IsLocationGenericType(typeof(TResult), out locationGenericType))
1894return (Activity<TResult>)ActivityUtilities.CreateVariableReference(variable);
System\Activities\ActivityDelegate.cs (7)
121if (ActivityUtilities.TryGetDelegateArgumentDirectionAndType(propertyDescriptor.PropertyType, out direction, out innerType))
174ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferencedWithoutTargetNoHandler(parent.DisplayName, this.owner.DisplayName), false, parent));
178ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferencedWithoutTarget(handler.DisplayName, parent.DisplayName, this.owner.DisplayName), false, parent));
189ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferencedNoHandler(parent.DisplayName, referenceTarget.DisplayName, this.owner.DisplayName), false, parent));
193ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferenced(handler.DisplayName, parent.DisplayName, referenceTarget.DisplayName, this.owner.DisplayName), false, parent));
236ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.RuntimeDelegateArgumentDirectionIncorrect, parent));
241ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.RuntimeDelegateArgumentTypeIncorrect, parent));
System\Activities\AsyncCodeActivity.cs (6)
248TD.CompleteBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
256TD.ScheduleBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
264TD.StartBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark), ActivityUtilities.GetTraceString(Bookmark.AsyncOperationCompletionBookmark.Scope));
System\Activities\Debugger\SourceLocationProvider.cs (4)
213ActivityUtilities.CacheRootMetadata(workflowRoot, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.ValidationOptions, null, ref validationErrors);
285ActivityUtilities.CacheRootMetadata(realRoot1, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.ValidationOptions, null, ref validationErrors);
293ActivityUtilities.CacheRootMetadata(realRoot2, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.ValidationOptions, null, ref validationErrors);
385ActivityUtilities.CacheRootMetadata(realRoot, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.ValidationOptions, null, ref validationErrors);
System\Activities\NativeActivityContext.cs (77)
524completionBookmark = ActivityUtilities.CreateCompletionBookmark(onCompleted, this.CurrentInstance);
536faultBookmark = ActivityUtilities.CreateFaultBookmark(onFaulted, this.CurrentInstance);
605return InternalScheduleDelegate(activityAction, ActivityUtilities.EmptyParameters,
606ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
607ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
640ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
641ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
675ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
676ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
711ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
712ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
749ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
750ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
790ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
791ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
832ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
833ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
875ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
876ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
919ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
920ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
965ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
966ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1012ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1013ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1060ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1061ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1109ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1110ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1159ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1160ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1210ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1211ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1262ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1263ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1315ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1316ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1343return InternalScheduleActivity(activity, ActivityUtilities.CreateCompletionBookmark(onCompleted, parent), ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1370return InternalScheduleDelegate(activityFunc, ActivityUtilities.EmptyParameters,
1371ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1372ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1405ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1406ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1441ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1442ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1478ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1479ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1516ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1517ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1557ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1558ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1599ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1600ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1642ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1643ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1686ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1687ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1732ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1733ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1779ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1780ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1827ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1828ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1876ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1877ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1926ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1927ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
1977ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
1978ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
2029ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
2030ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
2082ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
2083ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
2137return InternalScheduleDelegate(activityDelegate, inputParameters ?? ActivityUtilities.EmptyParameters,
2138ActivityUtilities.CreateCompletionBookmark(onCompleted, parent),
2139ActivityUtilities.CreateFaultBookmark(onFaulted, parent));
System\Activities\Runtime\BookmarkWorkItem.cs (6)
63TD.CompleteBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
71TD.ScheduleBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
79TD.StartBookmarkWorkItem(this.ActivityInstance.Activity.GetType().ToString(), this.ActivityInstance.Activity.DisplayName, this.ActivityInstance.Id, ActivityUtilities.GetTraceString(this.bookmark), ActivityUtilities.GetTraceString(this.bookmark.Scope));
System\Activities\RuntimeArgument.cs (6)
230if (ActivityUtilities.TryGetArgumentDirectionAndType(property.PropertyType, out direction, out argumentType))
258argument = ActivityUtilities.CreateArgument(this.Type, this.Direction);
264argument = ActivityUtilities.CreateArgument(this.Type, this.Direction);
288ActivityUtilities.Add(ref validationErrors, ProcessViolation(parent, SR.ArgumentIsAddedMoreThanOnce(this.Name, this.Owner.DisplayName)));
296ActivityUtilities.Add(ref validationErrors, ProcessViolation(parent, SR.ArgumentAlreadyInUse(this.Name, this.Owner.DisplayName, parent.DisplayName)));
304ActivityUtilities.Add(ref validationErrors, ProcessViolation(parent, SR.RuntimeArgumentBindingInvalid(this.Name, this.boundArgument.RuntimeArgument.Name)));
System\Activities\Validation\ActivityValidationServices.cs (21)
88internal static List<Activity> GetChildren(ActivityUtilities.ChildActivity root, ActivityUtilities.ActivityCallStack parentChain, ProcessActivityTreeOptions options)
90ActivityUtilities.FinishCachingSubtree(root, parentChain, options);
140ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.InputParametersTypeMismatch(argument.Type, argument.Name), rootActivity));
160ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.UnusedInputArguments(unusedArguments.AsCommaSeparatedValues()), rootActivity));
282static internal string GenerateValidationErrorPrefix(Activity toValidate, ActivityUtilities.ActivityCallStack parentChain, ProcessActivityTreeOptions options, out Activity source)
359internal static void RunConstraints(ActivityUtilities.ChildActivity childActivity, ActivityUtilities.ActivityCallStack parentChain, IList<Constraint> constraints, ProcessActivityTreeOptions options, bool suppressGetChildrenViolations, ref IList<ValidationError> validationErrors)
401ActivityUtilities.Add(ref validationErrors, constraintExceptionValidationError);
485ActivityUtilities.CacheRootMetadata(this.rootToValidate, this.environment, this.options, new ActivityUtilities.ProcessActivityCallback(ValidateElement), ref suppressedErrors);
490ActivityUtilities.CacheRootMetadata(this.rootToValidate, this.environment, this.options, new ActivityUtilities.ProcessActivityCallback(ValidateElement), ref this.errors);
496void ValidateElement(ActivityUtilities.ChildActivity childActivity, ActivityUtilities.ActivityCallStack parentChain)
548ActivityUtilities.FinishCachingSubtree(childActivity, parentChain, options, ValidateExpressionSubtree);
556ActivityUtilities.Add(ref this.errors, error);
563void ValidateExpressionSubtree(ActivityUtilities.ChildActivity childActivity, ActivityUtilities.ActivityCallStack parentChain)
574ActivityUtilities.Add(ref this.errors, error);
611ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.DuplicateEvaluationOrderValues(referenceActivity.DisplayName, argument.BoundArgument.EvaluationOrder), false, argument.Name, referenceActivity));
System\Activities\Validation\ValidationHelper.cs (7)
26ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.RequiredArgumentValueNotSupplied(argument.Name), false, argument.Name, activity));
76ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.NoOverloadGroupsAreConfigured, false, activity));
107ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ExtraOverloadGroupPropertiesConfigured(configuredGroupName,
120ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.ExtraOverloadGroupPropertiesConfigured(configuredGroupName,
130ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.MultipleOverloadGroupsConfigured(configuredGroups.AsCommaSeparatedValues()), false, activity));
200ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.OverloadGroupsAreEquivalent(sortedList.AsCommaSeparatedValues()), false, activity));
231ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.OverloadGroupHasSubsets(entry.Key, subsetGroups.AsCommaSeparatedValues()), false, activity));
System\Activities\WorkflowInspectionServices.cs (4)
39ActivityUtilities.CacheRootMetadata(rootActivity, hostEnvironment, ProcessActivityTreeOptions.FullCachingOptions, null, ref validationErrors);
60ActivityUtilities.CacheRootMetadata(root, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.FullCachingOptions, null, ref validationErrors);
87ActivityUtilities.CacheRootMetadata(activity, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.FullCachingOptions, null, ref validationErrors);
190ActivityUtilities.CacheRootMetadata(activity, new ActivityLocationReferenceEnvironment(), ProcessActivityTreeOptions.FullCachingOptions, null, ref validationErrors);