21984df7473cdd1639eb02e728b48226ede88afe
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / Validation / IValidationErrorSourceLocator.cs
1 // <copyright>
2 //   Copyright (c) Microsoft Corporation.  All rights reserved.
3 // </copyright>
4
5 namespace System.Activities.Presentation.Validation
6 {
7     using System.Activities.Presentation.Model;
8     using System.Collections.Generic;
9
10     // ValidationService is responsible for locating the ModelItem containing the violating activities
11     // Individual activity designers can register their ValidationErrorLocator to refine the source
12     // (e.g.) StateMachine can use this extensibility point to provide error on state level.
13     internal interface IValidationErrorSourceLocator
14     {
15         List<object> FindSourceDetailFromActivity(Activity errorSource, object errorSourceDetail);
16
17         void ReplaceParentChainWithSource(Activity parentActivity, List<object> parentChain);
18     }
19 }