public void Stop() { try { nancyHost.Stop(); } catch (Exception e) { monik.ApplicationError(e.Message); Console.WriteLine(e.Message); } monik.ApplicationWarning(stringVersion + " Stopped"); Console.WriteLine(stringVersion + " Stopped"); monik.OnStop(); }
protected override void CloseTarget() { monikClient?.OnStop(); base.CloseTarget(); }
public override void Flush() { base.Flush(); _monik.OnStop(); }