Rename HeaderDelimitedMessageHandler class
This commit is contained in:
Родитель
68014cfc5b
Коммит
ab138af2fa
|
@ -18,7 +18,7 @@ namespace StreamJsonRpc
|
|||
/// This is based on the language server protocol spec:
|
||||
/// https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#base-protocol
|
||||
/// </remarks>
|
||||
internal class HeaderDelimitedMessages : IDisposable
|
||||
internal class HeaderDelimitedMessageHandler : IDisposable
|
||||
{
|
||||
private const int MaxHeaderSize = 1024;
|
||||
|
||||
|
@ -50,7 +50,7 @@ namespace StreamJsonRpc
|
|||
private readonly AsyncSemaphore receivingSemaphore = new AsyncSemaphore(1);
|
||||
private readonly byte[] receivingBuffer = new byte[MaxHeaderSize];
|
||||
|
||||
internal HeaderDelimitedMessages(Stream sendingStream, Stream receivingStream)
|
||||
internal HeaderDelimitedMessageHandler(Stream sendingStream, Stream receivingStream)
|
||||
{
|
||||
this.sendingStream = sendingStream;
|
||||
this.receivingStream = receivingStream;
|
|
@ -41,7 +41,7 @@ namespace StreamJsonRpc
|
|||
private bool disposed;
|
||||
private bool hasDisconnectedEventBeenRaised;
|
||||
|
||||
private HeaderDelimitedMessages messageHandler;
|
||||
private HeaderDelimitedMessageHandler messageHandler;
|
||||
|
||||
public static JsonRpc Attach(Stream stream, object target = null)
|
||||
{
|
||||
|
@ -58,7 +58,7 @@ namespace StreamJsonRpc
|
|||
Requires.NotNull(sendingStream, nameof(sendingStream));
|
||||
Requires.NotNull(receivingStream, nameof(receivingStream));
|
||||
|
||||
this.messageHandler = new StreamJsonRpc.HeaderDelimitedMessages(sendingStream, receivingStream);
|
||||
this.messageHandler = new StreamJsonRpc.HeaderDelimitedMessageHandler(sendingStream, receivingStream);
|
||||
|
||||
this.callbackTarget = target;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<Compile Include="$(MSBuildThisFileDirectory)Exceptions\RemoteMethodNotFoundException.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Exceptions\RemoteRpcException.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Exceptions\RemoteTargetNotSetException.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HeaderDelimitedMessages.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)HeaderDelimitedMessageHandler.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)JsonRpc.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Reflection\MethodSignature.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Reflection\TargetMethod.cs" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче