Skip to content

Commit 34a2b2c

Browse files
committed
Promoting Abstractions to 2.1.0
1 parent 3982716 commit 34a2b2c

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

src/Policy/IPolicyList.cs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
22

33
using System;
4-
using Unity.Builder;
54

65
namespace Unity.Policy
76
{
@@ -10,24 +9,11 @@ namespace Unity.Policy
109
/// </summary>
1110
public interface IPolicyList
1211
{
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-
2512
/// <summary>
2613
/// GetOrDefault the non default policy.
2714
/// </summary>
2815
/// <param name="policyInterface">The interface the policy is registered under.</param>
2916
/// <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>
3117
/// <param name="containingPolicyList">The policy list in the chain that the searched for policy was found in, null if the policy was
3218
/// not found.</param>
3319
/// <returns>The policy in the list if present; returns null otherwise.</returns>
@@ -40,5 +26,16 @@ public interface IPolicyList
4026
/// <param name="policy">The policy to be registered.</param>
4127
/// <param name="buildKey">The key the policy applies.</param>
4228
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();
4340
}
4441
}

0 commit comments

Comments
 (0)