From 5b1c1d5559fdc5d97fe47565f55f4d25b3fa071e Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 20 Apr 2024 13:29:53 -0400 Subject: [PATCH] begin scaffolding for application framework --- framework-dotnet/src/lib/MBS.Core/Application.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/framework-dotnet/src/lib/MBS.Core/Application.cs b/framework-dotnet/src/lib/MBS.Core/Application.cs index 2820b6c..114bbb5 100644 --- a/framework-dotnet/src/lib/MBS.Core/Application.cs +++ b/framework-dotnet/src/lib/MBS.Core/Application.cs @@ -3,14 +3,22 @@ public class Application { - public void Start() + protected virtual int StartInternal() { - + return 0; + } + public int Start() + { + return StartInternal(); } - public void Stop() + protected virtual void StopInternal(int exitCode = 0) { - + System.Environment.Exit(exitCode); + } + public void Stop(int exitCode = 0) + { + StopInternal(exitCode); } }