35 references to ValidationReason
System.Data (35)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
66if (args.Reason != ValidationReason.ModelChange)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
821validationService.ValidateWorkflow(ValidationReason.ModelChange);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (14)
22private Func<ValidationReason, CancellationToken, TValidationResult> validationWork; 29private ValidationReason lastValidationReason; 33internal BackgroundValidationSynchronizer(TaskDispatcher dispatcher, Func<ValidationReason, CancellationToken, TValidationResult> validationWork, Action<TValidationResult> updateWork) 63internal override void Validate(ValidationReason validationReason) 125Fx.Assert(state is ValidationReason, "unusedState should always be a ValidationReason."); 126ValidationReason reason = (ValidationReason)state; 146private void ValidationWork(ValidationReason reason) 168public abstract SynchronizerState Validate(ValidationReason reason); 186public override SynchronizerState Validate(ValidationReason reason) 223public override SynchronizerState Validate(ValidationReason reason) 263public override SynchronizerState Validate(ValidationReason reason) 303public override SynchronizerState Validate(ValidationReason reason) 343public override SynchronizerState Validate(ValidationReason reason)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ForegroundValidationSynchronizer.cs (3)
15private Func<ValidationReason, CancellationToken, TValidationResult> validationWork; 18internal ForegroundValidationSynchronizer(TaskDispatcher dispatcher, Func<ValidationReason, CancellationToken, TValidationResult> validationWork, Action<TValidationResult> updateWork) 29internal override void Validate(ValidationReason reason)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (13)
56ValidationReason reason; 61ValidationReason reason, 76public ValidationReason Reason 164this.validationSynchronizer = new BackgroundValidationSynchronizer<Tuple<ValidationReason, ValidationResults, Exception>>(validationTaskDispatcher, this.CoreValidationWork, this.OnValidationWorkCompleted); 168this.validationSynchronizer = new ForegroundValidationSynchronizer<Tuple<ValidationReason, ValidationResults, Exception>>(validationTaskDispatcher, this.CoreValidationWork, this.OnValidationWorkCompleted); 314ValidateWorkflow(ValidationReason.Unknown); 357internal void ValidateWorkflow(ValidationReason reason) 381internal Tuple<ValidationReason, ValidationResults, Exception> CoreValidationWork(ValidationReason reason, CancellationToken cancellationToken) 407private void OnValidationWorkCompleted(Tuple<ValidationReason, ValidationResults, Exception> input) 409ValidationReason reason = input.Item1; 597private bool MarkErrors(ICollection<ValidationError> errors, ValidationReason reason, Activity rootActivity) 700private bool HandleErrorsMarked(ICollection<ValidationError> errors, ValidationReason reason)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationSynchronizer.cs (1)
9internal abstract void Validate(ValidationReason reason);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (2)
411this.ValidationService.ValidateWorkflow(ValidationReason.Load); 586this.ValidationService.ValidateWorkflow(ValidationReason.Save);