| 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.Harvesters.Extensibility |
| 4 | { |
| 5 | using Wix = WixToolset.Harvesters.Serialize; |
| 6 | |
| 7 | /// <summary> |
| 8 | /// The base harvester extension. Any of these methods can be overridden to change |
| 9 | /// the behavior of the harvester. |
| 10 | /// </summary> |
| 11 | public abstract class BaseHarvesterExtension : IHarvesterExtension |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// Gets or sets the harvester core for the extension. |
| 15 | /// </summary> |
| 16 | /// <value>The harvester core for the extension.</value> |
| 17 | public IHarvesterCore Core { get; set; } |
| 18 | |
| 19 | /// <summary> |
| 20 | /// Harvest a WiX document. |
| 21 | /// </summary> |
| 22 | /// <param name="argument">The argument for harvesting.</param> |
| 23 | /// <returns>The harvested Fragments.</returns> |
| 24 | public abstract Wix.Fragment[] Harvest(string argument); |
| 25 | } |
| 26 | } |