diff options
Diffstat (limited to 'src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs')
| -rw-r--r-- | src/WixToolset.Mba.Core/BaseBootstrapperApplicationFactory.cs | 16 |
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 | |||
| 3 | namespace 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 | } | ||
