From e9fea339e473e6dcc32e34e995429b41cabb6c22 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 1 Mar 2019 11:05:02 -0800 Subject: Expose only abstracts and enums from WixToolset.Extensibility --- src/WixToolset.Extensibility/BaseCompilerExtension.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/WixToolset.Extensibility/BaseCompilerExtension.cs') diff --git a/src/WixToolset.Extensibility/BaseCompilerExtension.cs b/src/WixToolset.Extensibility/BaseCompilerExtension.cs index e1584bc3..51fbcd0b 100644 --- a/src/WixToolset.Extensibility/BaseCompilerExtension.cs +++ b/src/WixToolset.Extensibility/BaseCompilerExtension.cs @@ -34,6 +34,11 @@ namespace WixToolset.Extensibility /// Schema namespace supported by this extension. public abstract XNamespace Namespace { get; } + /// + /// Creates a component key path. + /// + protected IComponentKeyPath CreateComponentKeyPath() => this.Context.ServiceProvider.GetService(); + /// /// Called at the beginning of the compilation of a source file. /// @@ -75,7 +80,7 @@ namespace WixToolset.Extensibility /// Element to process. /// Explicit key path. /// Extra information about the context in which this element is being parsed. - public virtual ComponentKeyPath ParsePossibleKeyPathElement(Intermediate intermediate, IntermediateSection section, XElement parentElement, XElement element, IDictionary context) + public virtual IComponentKeyPath ParsePossibleKeyPathElement(Intermediate intermediate, IntermediateSection section, XElement parentElement, XElement element, IDictionary context) { this.ParseElement(intermediate, section, parentElement, element, context); return null; -- cgit v1.2.3-55-g6feb