예제 #1
0
        public Task Handle(JupyterRequestContext context)
        {
            var shutdownReplyPayload = new ShutdownReply();

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