aboutsummaryrefslogtreecommitdiff
path: root/src/tools/heat/HeatCommandLineFactory.cs
blob: 44291e486bd1039a08c74a6e5f153bc767be20a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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.

namespace WixToolset.Harvesters
{
    using System;
    using System.Collections.Generic;
    using WixToolset.Extensibility.Services;
    using WixToolset.Harvesters.Data;
    using WixToolset.Harvesters.Extensibility;

    /// <summary>
    /// Extension methods to use Harvesters services.
    /// </summary>
    public class HeatCommandLineFactory
    {
        /// <summary>
        /// Creates <see cref="IHeatCommandLine"/> service.
        /// </summary>
        /// <param name="serviceProvider"></param>
        /// <param name="heatExtensions"></param>
        /// <returns></returns>
        public static IHeatCommandLine CreateCommandLine(IServiceProvider serviceProvider, IEnumerable<IHeatExtension> heatExtensions = null)
        {
            return new HeatCommandLine(serviceProvider, heatExtensions);
        }
    }
}