blob: 1990ea7849f7fd6f14ae1063041d88d6c91e96c5 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
// 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.Core.WindowsInstaller.Bind
{
using System.Collections.Generic;
using WixToolset.Data;
using WixToolset.Extensibility.Data;
/// <summary>
/// A cabinet builder work item.
/// </summary>
internal sealed class CabinetWorkItem
{
/// <summary>
/// Instantiate a new CabinetWorkItem.
/// </summary>
/// <param name="fileFacades">The collection of files in this cabinet.</param>
/// <param name="cabinetFile">The cabinet file.</param>
/// <param name="maxThreshold">Maximum threshold for each cabinet.</param>
/// <param name="compressionLevel">The compression level of the cabinet.</param>
/// <param name="modularizationSuffix">Modularization suffix used when building a Merge Module.</param>
/// <!--<param name="binderFileManager">The binder file manager.</param>-->
public CabinetWorkItem(IEnumerable<IFileFacade> fileFacades, string cabinetFile, int maxThreshold, CompressionLevel compressionLevel, string modularizationSuffix /*, BinderFileManager binderFileManager*/)
{
this.CabinetFile = cabinetFile;
this.CompressionLevel = compressionLevel;
this.ModularizationSuffix = modularizationSuffix;
this.FileFacades = fileFacades;
//this.BinderFileManager = binderFileManager;
this.MaxThreshold = maxThreshold;
}
/// <summary>
/// Gets the cabinet file.
/// </summary>
/// <value>The cabinet file.</value>
public string CabinetFile { get; }
/// <summary>
/// Gets the compression level of the cabinet.
/// </summary>
/// <value>The compression level of the cabinet.</value>
public CompressionLevel CompressionLevel { get; }
/// <summary>
/// Gets the modularization suffix used when building a Merge Module.
/// </summary>
public string ModularizationSuffix { get; }
/// <summary>
/// Gets the collection of files in this cabinet.
/// </summary>
/// <value>The collection of files in this cabinet.</value>
public IEnumerable<IFileFacade> FileFacades { get; }
// <summary>
// Gets the binder file manager.
// </summary>
// <value>The binder file manager.</value>
//public BinderFileManager BinderFileManager { get; private set; }
/// <summary>
/// Gets the max threshold.
/// </summary>
/// <value>The maximum threshold for a folder in a cabinet.</value>
public int MaxThreshold { get; }
}
}
|