@joebigelow / wix-1 / commits / 91847561

Add ICompilerContext.IsCurrentPlatfom64Bit

Rob Mensching committed Feb 11, 2021 at 13:30 UTC 918475619d98474100bbd8736df1a284ac5231aa
1 file changed +23 -1
src/WixToolset.Extensibility/Data/ICompileContext.cs
+23 -1
@@ -8,13 +8,24 @@ namespace WixToolset.Extensibility.Data
8 using WixToolset.Data;
9 using WixToolset.Extensibility.Services;
10
11 -#pragma warning disable 1591 // TODO: add documentation
11 + /// <summary>
12 + /// Context provided to the compiler.
13 + /// </summary>
14 public interface ICompileContext
15 {
16 + /// <summary>
17 + /// Service provider made available to the compiler and its extensions.
18 + /// </summary>
19 IWixToolsetServiceProvider ServiceProvider { get; }
20
21 + /// <summary>
22 + /// Unique identifier for the compilation.
23 + /// </summary>
24 string CompilationId { get; set; }
25
26 + /// <summary>
27 + /// Set of extensions provided to the compiler.
28 + /// </summary>
29 IEnumerable<ICompilerExtension> Extensions { get; set; }
30
31 /// <summary>
@@ -23,8 +34,19 @@ namespace WixToolset.Extensibility.Data
34 /// <value>The platform which the compiler will use when defaulting 64-bit attributes and elements.</value>
35 Platform Platform { get; set; }
36
37 + /// <summary>
38 + /// Calculates whether the target platform for the compilation is 64-bit or not.
39 + /// </summary>
40 + bool IsCurrentPlatform64Bit { get; }
41 +
42 + /// <summary>
43 + /// Source document being compiled.
44 + /// </summary>
45 XDocument Source { get; set; }
46
47 + /// <summary>
48 + /// Cancellation token to abort cancellation.
49 + /// </summary>
50 CancellationToken CancellationToken { get; set; }
51 }
52 }