public Task Handle(JupyterRequestContext context) { var shutdownReplyPayload = new ShutdownReply(); context.JupyterMessageSender.Send(shutdownReplyPayload); Environment.Exit(0); return(Task.CompletedTask); }
public void shutdownRequest(KernelMessage msg, ShutdownRequest content) { logMessage("shutdown request"); var reply = new ShutdownReply() { restart = true }; sendMessage(shellSocket, msg, "shutdown_reply", reply); System.Environment.Exit(0); }
public ShutdownReply Shutdown(ShutdownRequest r) { ServerContext.RaiseShutdown(); return(ShutdownReply.CreateSuccess()); }