aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2019-12-11 19:34:47 +1100
committerSean Hall <r.sean.hall@gmail.com>2019-12-11 20:10:40 +1000
commit62352fabd541aaa9d0a2c957c4bdd4b9c682df9c (patch)
tree941513045cb644553af582fc0722c853793a90dd /src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs
parentca118d0123624e4e1523eeb7a54eb56364d5876e (diff)
downloadwix-62352fabd541aaa9d0a2c957c4bdd4b9c682df9c.tar.gz
wix-62352fabd541aaa9d0a2c957c4bdd4b9c682df9c.tar.bz2
wix-62352fabd541aaa9d0a2c957c4bdd4b9c682df9c.zip
Import files from BootstrapperCore repo.
Diffstat (limited to 'src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs')
-rw-r--r--src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs b/src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs
new file mode 100644
index 00000000..e9b60929
--- /dev/null
+++ b/src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs
@@ -0,0 +1,16 @@
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
3namespace WixToolset.BootstrapperCore
4{
5 public abstract class BaseBootstrapperApplicationFactory : IBootstrapperApplicationFactory
6 {
7 public IBootstrapperApplication Create(IBootstrapperEngine pEngine, ref Command command)
8 {
9 IEngine engine = new Engine(pEngine);
10 IBootstrapperCommand bootstrapperCommand = command.GetBootstrapperCommand();
11 return this.Create(engine, bootstrapperCommand);
12 }
13
14 protected abstract IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand bootstrapperCommand);
15 }
16}