aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Binder.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-10-17 02:47:44 -0700
committerRob Mensching <rob@firegiant.com>2017-10-18 13:31:55 -0700
commitc08fd0aefeea1628fe93c818ca4dde63fd6ac2e1 (patch)
treeac63402f6bad7f3a5bc20b088914145d9bf8635b /src/WixToolset.Core/Binder.cs
parent6dd045318f7ee405e92e76d311ad1424c20157c1 (diff)
downloadwix-c08fd0aefeea1628fe93c818ca4dde63fd6ac2e1.tar.gz
wix-c08fd0aefeea1628fe93c818ca4dde63fd6ac2e1.tar.bz2
wix-c08fd0aefeea1628fe93c818ca4dde63fd6ac2e1.zip
Introduce WixToolsetServiceProvider
Using a service provider allows all of WixToolset.Core's internal functionality to be abstracted behind interfaces in WixToolset.Extensibility. The service provide can also control what interfaces are singletons.
Diffstat (limited to 'src/WixToolset.Core/Binder.cs')
-rw-r--r--src/WixToolset.Core/Binder.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WixToolset.Core/Binder.cs b/src/WixToolset.Core/Binder.cs
index 43c15634..34bf0dee 100644
--- a/src/WixToolset.Core/Binder.cs
+++ b/src/WixToolset.Core/Binder.cs
@@ -16,6 +16,7 @@ namespace WixToolset.Core
16 using WixToolset.Data.Bind; 16 using WixToolset.Data.Bind;
17 using WixToolset.Data.Rows; 17 using WixToolset.Data.Rows;
18 using WixToolset.Extensibility; 18 using WixToolset.Extensibility;
19 using WixToolset.Extensibility.Services;
19 20
20 /// <summary> 21 /// <summary>
21 /// Binder of the WiX toolset. 22 /// Binder of the WiX toolset.
@@ -42,14 +43,14 @@ namespace WixToolset.Core
42 //this.SuppressIces = new List<string>(); 43 //this.SuppressIces = new List<string>();
43 } 44 }
44 45
45 public Binder(BindContext context) 46 public Binder(IBindContext context)
46 { 47 {
47 this.Context = context; 48 this.Context = context;
48 49
49 this.TableDefinitions = WindowsInstallerStandard.GetTableDefinitions(); 50 this.TableDefinitions = WindowsInstallerStandard.GetTableDefinitions();
50 } 51 }
51 52
52 private BindContext Context { get; } 53 private IBindContext Context { get; }
53 54
54 private TableDefinitionCollection TableDefinitions { get; } 55 private TableDefinitionCollection TableDefinitions { get; }
55 56