begin scaffolding for application framework
This commit is contained in:
parent
b55e9d30b9
commit
5b1c1d5559
@ -3,14 +3,22 @@
|
|||||||
public class Application
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user