diff options
Diffstat (limited to 'src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs')
-rw-r--r-- | src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs b/src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs index 0dea8b1d..e87f4360 100644 --- a/src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs +++ b/src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs | |||
@@ -5,16 +5,22 @@ namespace WixToolset.Core.Burn.Inscribe | |||
5 | using System.IO; | 5 | using System.IO; |
6 | using WixToolset.Core.Burn.Bundles; | 6 | using WixToolset.Core.Burn.Bundles; |
7 | using WixToolset.Extensibility; | 7 | using WixToolset.Extensibility; |
8 | using WixToolset.Extensibility.Data; | ||
9 | using WixToolset.Extensibility.Services; | ||
8 | 10 | ||
9 | internal class InscribeBundleCommand | 11 | internal class InscribeBundleCommand |
10 | { | 12 | { |
11 | public InscribeBundleCommand(IInscribeContext context) | 13 | public InscribeBundleCommand(IInscribeContext context) |
12 | { | 14 | { |
13 | this.Context = context; | 15 | this.Context = context; |
14 | } | ||
15 | 16 | ||
17 | this.Messaging = context.ServiceProvider.GetService<IMessaging>(); | ||
18 | } | ||
19 | |||
16 | private IInscribeContext Context { get; } | 20 | private IInscribeContext Context { get; } |
17 | 21 | ||
22 | public IMessaging Messaging { get; } | ||
23 | |||
18 | public bool Execute() | 24 | public bool Execute() |
19 | { | 25 | { |
20 | bool inscribed = false; | 26 | bool inscribed = false; |
@@ -29,7 +35,7 @@ namespace WixToolset.Core.Burn.Inscribe | |||
29 | { | 35 | { |
30 | reader.Stream.Seek(reader.AttachedContainerAddress, SeekOrigin.Begin); | 36 | reader.Stream.Seek(reader.AttachedContainerAddress, SeekOrigin.Begin); |
31 | 37 | ||
32 | using (BurnWriter writer = BurnWriter.Open(this.Context.Messaging, tempFile)) | 38 | using (BurnWriter writer = BurnWriter.Open(this.Messaging, tempFile)) |
33 | { | 39 | { |
34 | writer.RememberThenResetSignature(); | 40 | writer.RememberThenResetSignature(); |
35 | writer.AppendContainer(reader.Stream, reader.AttachedContainerSize, BurnCommon.Container.Attached); | 41 | writer.AppendContainer(reader.Stream, reader.AttachedContainerSize, BurnCommon.Container.Attached); |