diff options
Diffstat (limited to 'src/test/examples/LatestCoreMBA/LatestCoreBA.cs')
-rw-r--r-- | src/test/examples/LatestCoreMBA/LatestCoreBA.cs | 33 |
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 | |||
3 | namespace 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 | } | ||