// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.usingSystem.IO;usingStreamJsonRpc;namespaceMicrosoft.VisualStudio.LanguageServices.Remote{// This is a workaround for a limitation in vs-threading.// https://github.com/dotnet/roslyn/issues/19042internalclassJsonRpcMessageHandler:HeaderDelimitedMessageHandler{publicJsonRpcMessageHandler(StreamsendingStream,StreamreceivingStream):base(sendingStream,receivingStream){}protectedoverridevoidDispose(booldisposing){// Do not call base.Dispose. We do not want the AsyncSemaphore instances to be disposed due to a race// condition.if(disposing){ReceivingStream?.Dispose();SendingStream?.Dispose();}}}}