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); } }