aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2018-07-23 14:21:40 -0700
committerRob Mensching <rob@firegiant.com>2018-07-23 14:27:11 -0700
commit5a1afc9030a1fcc101b6bb52b576fbbfa3ad33c2 (patch)
treed409a2399bd831f16ecdb8e68947ea672dcd65d4 /src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs
parent2724cfee4c163f3297ee25edfd2372767cfd4945 (diff)
downloadwix-5a1afc9030a1fcc101b6bb52b576fbbfa3ad33c2.tar.gz
wix-5a1afc9030a1fcc101b6bb52b576fbbfa3ad33c2.tar.bz2
wix-5a1afc9030a1fcc101b6bb52b576fbbfa3ad33c2.zip
Integrate Extensibility.Data namespace change from Extensibility repo
Diffstat (limited to 'src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs')
-rw-r--r--src/WixToolset.Core.Burn/Inscribe/InscribeBundleCommand.cs10
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);