Exemplo n.º 1
0
        private void HandleKernelInfoRequest(Envelope request)
        {
            var languageInfo    = GetLanguageInfo();
            var kernelInfoReply = new KernelInfoReply(Constants.MESSAGE_PROTOCOL_VERSION, ".NET", "5.1.0", languageInfo);

            _shellSender.Reply(kernelInfoReply, request);
        }
Exemplo n.º 2
0
        private void HandleKernelInfoRequest(ZeroMQMessage request)
        {
            var languageInfo    = GetLanguageInfo();
            var kernelInfoReply = new KernelInfoReply(Constants.MESSAGE_PROTOCOL_VERSION, ".NET", "5.1.0", languageInfo);

            _shellChannel.Reply(kernelInfoReply, request);
        }
Exemplo n.º 3
0
        protected override async Task HandleMessage(ReplyChannel <int> msg)
        {
            await Task.Delay(500);

            msg.Reply(_random.Next(100, 500));
        }