main
cs 22 lines 906 Bytes
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace WixToolset.Extensibility
4 {
5 using WixToolset.Extensibility.Data;
6
7 /// <summary>
8 /// Interface that all optimizer extensions implement.
9 /// </summary>
10 public interface IOptimizerExtension
11 {
12 /// <summary>
13 /// Called after all files have been compiled, before built-in optimizations, and before all sections are linked into a single section.
14 /// </summary>
15 void PreOptimize(IOptimizeContext context);
16
17 /// <summary>
18 /// Called after all files have been compiled, after built-in optimizations, and before all sections are linked into a single section.
19 /// </summary>
20 void PostOptimize(IOptimizeContext context);
21 }
22 }