aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Extensibility/Data/IBindContext.cs
blob: ee165671f54c2882b23216193a92fb471732a5cc (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// 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.Extensibility.Data
{
    using System;
    using System.Collections.Generic;
    using System.Threading;
    using WixToolset.Data;

    /// <summary>
    /// Bind context.
    /// </summary>
    public interface IBindContext
    {
        /// <summary>
        /// Service provider.
        /// </summary>
        IServiceProvider ServiceProvider { get; }

        /// <summary>
        /// Counnt of threads to use in cabbing.
        /// </summary>
        int CabbingThreadCount { get; set; }

        /// <summary>
        /// Cabinet cache path.
        /// </summary>
        string CabCachePath { get; set; }

        /// <summary>
        /// Codepage for result.
        /// </summary>
        int Codepage { get; set; }

        /// <summary>
        /// Default compression level.
        /// </summary>
        CompressionLevel? DefaultCompressionLevel { get; set; }

        /// <summary>
        /// Delayed fields that need to be resolved again.
        /// </summary>
        IEnumerable<IDelayedField> DelayedFields { get; set; }

        /// <summary>
        /// Embedded files to extract.
        /// </summary>
        IEnumerable<IExpectedExtractFile> ExpectedEmbeddedFiles { get; set; }

        /// <summary>
        /// Binder extensions.
        /// </summary>
        IEnumerable<IBinderExtension> Extensions { get; set; }

        /// <summary>
        /// File system extensions.
        /// </summary>
        IEnumerable<IFileSystemExtension> FileSystemExtensions { get; set; }

        /// <summary>
        /// Set of ICEs to execute.
        /// </summary>
        IEnumerable<string> Ices { get; set; }

        /// <summary>
        /// Intermedaite folder.
        /// </summary>
        string IntermediateFolder { get; set; }

        /// <summary>
        /// Intermediate representation to bind.
        /// </summary>
        Intermediate IntermediateRepresentation { get; set; }

        /// <summary>
        /// Output path to bind to.
        /// </summary>
        string OutputPath { get; set; }

        /// <summary>
        /// Type of PDB to create.
        /// </summary>
        PdbType PdbType { get; set; }

        /// <summary>
        /// Output path for PDB.
        /// </summary>
        string PdbPath { get; set; }

        /// <summary>
        /// Set of ICEs to skip.
        /// </summary>
        IEnumerable<string> SuppressIces { get; set; }

        /// <summary>
        /// Skip all ICEs.
        /// </summary>
        bool SuppressValidation { get; set; }

        /// <summary>
        /// Skip creation of output.
        /// </summary>
        bool SuppressLayout { get; set; }

        /// <summary>
        /// Cancellation token.
        /// </summary>
        CancellationToken CancellationToken { get; set; }
    }
}