40 private readonly
string name;
42 public bool Reload {
get;
private set; }
44 public bool Stopped {
get;
private set; }
51 if (Environment.OSVersion.Platform != PlatformID.Unix)
54 var signalHandler =
new Thread(Execute);
55 signalHandler.Start();
71 RaiseExitApplicationEvent();
76 log.SignalReloading();
77 RaiseExitApplicationEvent();
80 var thread =
new Thread(() =>
86 log.SignalRefreshing();
93 log.SignalInterProcError();
94 RaiseExitApplicationEvent();
97 log.UnexpectedSignal();
103 log.SignalHandlerError(e);
105 RaiseExitApplicationEvent();
113 ExitApplication?.Invoke(
this, EventArgs.Empty);
static Signal Wait(string name, LogBase log)
SignalHandler(string name, LogBase log)
EventHandler< EventArgs > ExitApplication
void RaiseExitApplicationEvent()