From ab495395492055c8c016e54ab0b1f7af2e9f164c Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 23 Apr 2020 12:26:07 +1000 Subject: Add reload engine and test. --- src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test/examples/FullFramework2MBA') diff --git a/src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs b/src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs index d3cafc70..40cff30f 100644 --- a/src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs +++ b/src/test/examples/FullFramework2MBA/FullFramework2BAFactory.cs @@ -6,8 +6,15 @@ namespace Example.FullFramework2MBA public class FullFramework2BAFactory : BaseBootstrapperApplicationFactory { + private static int loadCount = 0; + protected override IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand bootstrapperCommand) { + if (loadCount > 0) + { + engine.Log(LogLevel.Standard, $"Reloaded {loadCount} time(s)"); + } + ++loadCount; return new FullFramework2BA(engine); } } -- cgit v1.2.3-55-g6feb