diff options
author | Rob Mensching <rob@firegiant.com> | 2017-12-26 15:11:40 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2017-12-26 15:11:40 -0800 |
commit | 1d6ff8af3c423ee4622185edc986ae5caad6b122 (patch) | |
tree | 0fd320bb2e249da3a2fbebcd3e0aa49879aa27b0 /src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | |
parent | ecf3a0cca5a424a91ab98557d963d2535963d582 (diff) | |
download | wix-1d6ff8af3c423ee4622185edc986ae5caad6b122.tar.gz wix-1d6ff8af3c423ee4622185edc986ae5caad6b122.tar.bz2 wix-1d6ff8af3c423ee4622185edc986ae5caad6b122.zip |
Standardize creation of public objects in move towards interfaces
Diffstat (limited to 'src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs')
-rw-r--r-- | src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs index 0e3e0bfd..0331c815 100644 --- a/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs +++ b/src/WixToolset.Core/ExtensibilityServices/PreprocessHelper.cs | |||
@@ -458,7 +458,11 @@ namespace WixToolset.Core.ExtensibilityServices | |||
458 | { | 458 | { |
459 | this.ExtensionsByPrefix = new Dictionary<string, IPreprocessorExtension>(); | 459 | this.ExtensionsByPrefix = new Dictionary<string, IPreprocessorExtension>(); |
460 | 460 | ||
461 | foreach (var extension in context.Extensions) | 461 | var extensionManager = this.ServiceProvider.GetService<IExtensionManager>(); |
462 | |||
463 | var extensions = extensionManager.Create<IPreprocessorExtension>(); | ||
464 | |||
465 | foreach (var extension in extensions) | ||
462 | { | 466 | { |
463 | if (null != extension.Prefixes) | 467 | if (null != extension.Prefixes) |
464 | { | 468 | { |