Class MessageReader
Inheritance
System.Object
MessageReader
Namespace:Microsoft.SqlTools.ServiceLayer.Hosting.Protocol
Assembly:Microsoft.SqlTools.ServiceLayer.dll
Syntax
public class MessageReader
Constructors
| Improve this Doc View SourceMessageReader(Stream, IMessageSerializer, Encoding)
Declaration
public MessageReader(Stream inputStream, IMessageSerializer messageSerializer, Encoding messageEncoding = null)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | inputStream | |
IMessageSerializer | messageSerializer | |
System.Text.Encoding | messageEncoding |
Fields
| Improve this Doc View SourceBufferResizeTrigger
Declaration
public const double BufferResizeTrigger = 0.25
DefaultBufferSize
Declaration
public const int DefaultBufferSize = 8192
Methods
| Improve this Doc View SourceReadMessage()
Declaration
public Task<Message> ReadMessage()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Message> |