1
1
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
2
2
3
3
using System ;
4
- using Unity . Builder ;
5
4
6
5
namespace Unity . Policy
7
6
{
@@ -10,24 +9,11 @@ namespace Unity.Policy
10
9
/// </summary>
11
10
public interface IPolicyList
12
11
{
13
- /// <summary>
14
- /// Removes an individual policy type for a build key.
15
- /// </summary>
16
- /// <param name="policyInterface">The type of policy to remove.</param>
17
- /// <param name="buildKey">The key the policy applies.</param>
18
- void Clear ( Type policyInterface , object buildKey ) ;
19
-
20
- /// <summary>
21
- /// Removes all policies from the list.
22
- /// </summary>
23
- void ClearAll ( ) ;
24
-
25
12
/// <summary>
26
13
/// GetOrDefault the non default policy.
27
14
/// </summary>
28
15
/// <param name="policyInterface">The interface the policy is registered under.</param>
29
16
/// <param name="buildKey">The key the policy applies to.</param>
30
- /// <param name="localOnly">True if the search should be in the local policy list only; otherwise false to search up the parent chain.</param>
31
17
/// <param name="containingPolicyList">The policy list in the chain that the searched for policy was found in, null if the policy was
32
18
/// not found.</param>
33
19
/// <returns>The policy in the list if present; returns null otherwise.</returns>
@@ -40,5 +26,16 @@ public interface IPolicyList
40
26
/// <param name="policy">The policy to be registered.</param>
41
27
/// <param name="buildKey">The key the policy applies.</param>
42
28
void Set ( Type policyInterface , IBuilderPolicy policy , object buildKey = null ) ;
29
+ /// <summary>
30
+ /// Removes an individual policy type for a build key.
31
+ /// </summary>
32
+ /// <param name="policyInterface">The type of policy to remove.</param>
33
+ /// <param name="buildKey">The key the policy applies.</param>
34
+ void Clear ( Type policyInterface , object buildKey ) ;
35
+
36
+ /// <summary>
37
+ /// Removes all policies from the list.
38
+ /// </summary>
39
+ void ClearAll ( ) ;
43
40
}
44
41
}
0 commit comments