From 95541a3304235cb1ee874d38b307334d637af2a9 Mon Sep 17 00:00:00 2001 From: Shyam Namboodiripad Date: Wed, 5 Apr 2023 02:16:37 -0700 Subject: [PATCH] Include SendValue in list of commands registered for (de)serialization by default. This fixes a deadlock + exception. --- .../Connection/KernelCommandEnvelope.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Interactive/Connection/KernelCommandEnvelope.cs b/src/Microsoft.DotNet.Interactive/Connection/KernelCommandEnvelope.cs index 730dc117d5..0d08586463 100644 --- a/src/Microsoft.DotNet.Interactive/Connection/KernelCommandEnvelope.cs +++ b/src/Microsoft.DotNet.Interactive/Connection/KernelCommandEnvelope.cs @@ -74,7 +74,8 @@ public static void RegisterDefaults() [nameof(RequestInput)] = typeof(KernelCommandEnvelope), [nameof(RequestValue)] = typeof(KernelCommandEnvelope), [nameof(RequestValueInfos)] = typeof(KernelCommandEnvelope), - [nameof(RequestKernelInfo)] = typeof(KernelCommandEnvelope) + [nameof(RequestKernelInfo)] = typeof(KernelCommandEnvelope), + [nameof(SendValue)] = typeof(KernelCommandEnvelope) }; _commandTypesByCommandTypeName = new ConcurrentDictionary(_envelopeTypesByCommandTypeName