diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-02 20:45:40 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-02 21:34:24 +1000 |
| commit | 177784c9a6d93eeb3c195e6d62b97eb4c1dde32b (patch) | |
| tree | 1ad322fa26816a32279f5433ec500cbdf5934f86 /src/WixToolset.Core.WindowsInstaller/UnbindContext.cs | |
| parent | 302b501f9ed2ae840ce598b30792d0fc1b538572 (diff) | |
| download | wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.tar.gz wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.tar.bz2 wix-177784c9a6d93eeb3c195e6d62b97eb4c1dde32b.zip | |
Use IWixToolsetServiceProvider and IWixToolsetCoreServiceProvider to expose the more convenient methods from WixToolsetServiceProvider without requiring casting or extension methods.
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/UnbindContext.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/UnbindContext.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/UnbindContext.cs b/src/WixToolset.Core.WindowsInstaller/UnbindContext.cs index 2bc4516d..f60a0e1a 100644 --- a/src/WixToolset.Core.WindowsInstaller/UnbindContext.cs +++ b/src/WixToolset.Core.WindowsInstaller/UnbindContext.cs | |||
| @@ -1,13 +1,19 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | 2 | ||
| 3 | namespace WixToolset.Core | 3 | namespace WixToolset.Core |
| 4 | { | 4 | { |
| 5 | using System; | 5 | using System; |
| 6 | using WixToolset.Extensibility.Data; | 6 | using WixToolset.Extensibility.Data; |
| 7 | using WixToolset.Extensibility.Services; | ||
| 7 | 8 | ||
| 8 | internal class UnbindContext : IUnbindContext | 9 | internal class UnbindContext : IUnbindContext |
| 9 | { | 10 | { |
| 10 | public IServiceProvider ServiceProvider { get; } | 11 | internal UnbindContext(IWixToolsetServiceProvider serviceProvider) |
| 12 | { | ||
| 13 | this.ServiceProvider = serviceProvider; | ||
| 14 | } | ||
| 15 | |||
| 16 | public IWixToolsetServiceProvider ServiceProvider { get; } | ||
| 11 | 17 | ||
| 12 | public string ExportBasePath { get; set; } | 18 | public string ExportBasePath { get; set; } |
| 13 | 19 | ||
