aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Bal/test/examples/FullFramework4MBA/FullFramework4BA.cs
blob: 8ee3bd19572f7448f6f3484af0ca97ecaa1c4f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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.

namespace Example.FullFramework4MBA
{
    using WixToolset.Mba.Core;

    public class FullFramework4BA : BootstrapperApplication
    {
        public FullFramework4BA(IEngine engine)
            : base(engine)
        {

        }

        protected override void Run()
        {
        }

        protected override void OnStartup(StartupEventArgs args)
        {
            base.OnStartup(args);

            this.engine.Log(LogLevel.Standard, nameof(FullFramework4BA));
        }

        protected override void OnShutdown(ShutdownEventArgs args)
        {
            base.OnShutdown(args);

            var message = "Shutdown," + args.Action.ToString() + "," + args.HResult.ToString();
            this.engine.Log(LogLevel.Standard, message);
        }
    }
}