aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/LatestCoreMBA/LatestCoreBA.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-04-29 19:28:50 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-04-29 19:53:29 +1000
commit39e930d9aaff250e0fd5019eeedaa40717a6c6fe (patch)
treebc0865bc6c9ced1b4a06b408ff60cb83ef73cad3 /src/test/examples/LatestCoreMBA/LatestCoreBA.cs
parentf4b14ff16f78435285bb20f16d5d62b902e6ba17 (diff)
downloadwix-39e930d9aaff250e0fd5019eeedaa40717a6c6fe.tar.gz
wix-39e930d9aaff250e0fd5019eeedaa40717a6c6fe.tar.bz2
wix-39e930d9aaff250e0fd5019eeedaa40717a6c6fe.zip
Add DotNetCoreBootstrapperApplicationHost for an SCD-style .NET Core BA.
Diffstat (limited to 'src/test/examples/LatestCoreMBA/LatestCoreBA.cs')
-rw-r--r--src/test/examples/LatestCoreMBA/LatestCoreBA.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/examples/LatestCoreMBA/LatestCoreBA.cs b/src/test/examples/LatestCoreMBA/LatestCoreBA.cs
new file mode 100644
index 00000000..50386a87
--- /dev/null
+++ b/src/test/examples/LatestCoreMBA/LatestCoreBA.cs
@@ -0,0 +1,33 @@
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 Example.LatestCoreMBA
4{
5 using WixToolset.Mba.Core;
6
7 public class LatestCoreBA : BootstrapperApplication
8 {
9 public LatestCoreBA(IEngine engine)
10 : base(engine)
11 {
12 }
13
14 protected override void Run()
15 {
16 }
17
18 protected override void OnStartup(StartupEventArgs args)
19 {
20 base.OnStartup(args);
21
22 this.engine.Log(LogLevel.Standard, nameof(LatestCoreBA));
23 }
24
25 protected override void OnShutdown(ShutdownEventArgs args)
26 {
27 base.OnShutdown(args);
28
29 var message = "Shutdown," + args.Action.ToString() + "," + args.HResult.ToString();
30 this.engine.Log(LogLevel.Standard, message);
31 }
32 }
33}