begin scaffolding for application framework

This commit is contained in:
Michael Becker 2024-04-20 13:29:53 -04:00
parent b55e9d30b9
commit 5b1c1d5559

View File

@ -3,14 +3,22 @@
public class Application public class Application
{ {
public void Start() protected virtual int StartInternal()
{ {
return 0;
} }
public int Start()
public void Stop()
{ {
return StartInternal();
}
protected virtual void StopInternal(int exitCode = 0)
{
System.Environment.Exit(exitCode);
}
public void Stop(int exitCode = 0)
{
StopInternal(exitCode);
} }
} }