diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-22 17:38:36 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-04-29 16:49:19 -0700 |
| commit | 35606d2cd04a7b1bec1d669f9619501dff2bf9dc (patch) | |
| tree | 9dfdca153ab55e842f1e0ae6962fa1214c488c00 /src/heat/HeatCommandLineFactory.cs | |
| parent | 19f147cc9d56924b8f556bebfa9be5ab3dbeb186 (diff) | |
| download | wix-35606d2cd04a7b1bec1d669f9619501dff2bf9dc.tar.gz wix-35606d2cd04a7b1bec1d669f9619501dff2bf9dc.tar.bz2 wix-35606d2cd04a7b1bec1d669f9619501dff2bf9dc.zip | |
Simplify heat by creating a single executable
Diffstat (limited to 'src/heat/HeatCommandLineFactory.cs')
| -rw-r--r-- | src/heat/HeatCommandLineFactory.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/heat/HeatCommandLineFactory.cs b/src/heat/HeatCommandLineFactory.cs new file mode 100644 index 00000000..44291e48 --- /dev/null +++ b/src/heat/HeatCommandLineFactory.cs | |||
| @@ -0,0 +1,27 @@ | |||
| 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 | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.Collections.Generic; | ||
| 7 | using WixToolset.Extensibility.Services; | ||
| 8 | using WixToolset.Harvesters.Data; | ||
| 9 | using WixToolset.Harvesters.Extensibility; | ||
| 10 | |||
| 11 | /// <summary> | ||
| 12 | /// Extension methods to use Harvesters services. | ||
| 13 | /// </summary> | ||
| 14 | public class HeatCommandLineFactory | ||
| 15 | { | ||
| 16 | /// <summary> | ||
| 17 | /// Creates <see cref="IHeatCommandLine"/> service. | ||
| 18 | /// </summary> | ||
| 19 | /// <param name="serviceProvider"></param> | ||
| 20 | /// <param name="heatExtensions"></param> | ||
| 21 | /// <returns></returns> | ||
| 22 | public static IHeatCommandLine CreateCommandLine(IServiceProvider serviceProvider, IEnumerable<IHeatExtension> heatExtensions = null) | ||
| 23 | { | ||
| 24 | return new HeatCommandLine(serviceProvider, heatExtensions); | ||
| 25 | } | ||
| 26 | } | ||
| 27 | } | ||
