Exemplo n.º 1
0
        public Task Handle(JupyterRequestContext context)
        {
            var shutdownReplyPayload = new ShutdownReply();

            context.JupyterMessageSender.Send(shutdownReplyPayload);
            Environment.Exit(0);
            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public ShutdownReply Shutdown(ShutdownRequest r)
 {
     ServerContext.RaiseShutdown();
     return(ShutdownReply.CreateSuccess());
 }