From 918475619d98474100bbd8736df1a284ac5231aa Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 11 Feb 2021 13:30:53 -0800 Subject: Add ICompilerContext.IsCurrentPlatfom64Bit --- .../Data/ICompileContext.cs | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/WixToolset.Extensibility/Data/ICompileContext.cs b/src/WixToolset.Extensibility/Data/ICompileContext.cs index 1c3620b6..5da5ca84 100644 --- a/src/WixToolset.Extensibility/Data/ICompileContext.cs +++ b/src/WixToolset.Extensibility/Data/ICompileContext.cs @@ -8,13 +8,24 @@ namespace WixToolset.Extensibility.Data using WixToolset.Data; using WixToolset.Extensibility.Services; -#pragma warning disable 1591 // TODO: add documentation + /// + /// Context provided to the compiler. + /// public interface ICompileContext { + /// + /// Service provider made available to the compiler and its extensions. + /// IWixToolsetServiceProvider ServiceProvider { get; } + /// + /// Unique identifier for the compilation. + /// string CompilationId { get; set; } + /// + /// Set of extensions provided to the compiler. + /// IEnumerable Extensions { get; set; } /// @@ -23,8 +34,19 @@ namespace WixToolset.Extensibility.Data /// The platform which the compiler will use when defaulting 64-bit attributes and elements. Platform Platform { get; set; } + /// + /// Calculates whether the target platform for the compilation is 64-bit or not. + /// + bool IsCurrentPlatform64Bit { get; } + + /// + /// Source document being compiled. + /// XDocument Source { get; set; } + /// + /// Cancellation token to abort cancellation. + /// CancellationToken CancellationToken { get; set; } } } -- cgit v1.2.3-55-g6feb