Improve this Doc
View Source
Inheritance
System.Object
MessageWriter
Namespace:Microsoft.SqlTools.ServiceLayer.Hosting.Protocol
Assembly:Microsoft.SqlTools.ServiceLayer.dll
public class MessageWriter
Constructors
|
Improve this Doc
View Source
Declaration
public MessageWriter(Stream outputStream, IMessageSerializer messageSerializer)
Parameters
Methods
|
Improve this Doc
View Source
Declaration
public Task WriteEvent<TParams>(EventType<TParams> eventType, TParams eventParams)
Parameters
Type |
Name |
Description |
EventType<TParams> |
eventType |
|
TParams |
eventParams |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Declaration
public Task WriteMessage(Message messageToWrite)
Parameters
Type |
Name |
Description |
Message |
messageToWrite |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Declaration
public Task WriteRequest<TParams, TResult>(RequestType<TParams, TResult> requestType, TParams requestParams, int requestId)
Parameters
Type |
Name |
Description |
RequestType<TParams, TResult> |
requestType |
|
TParams |
requestParams |
|
System.Int32 |
requestId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Declaration
public Task WriteResponse<TResult>(TResult resultContent, string method, string requestId)
Parameters
Type |
Name |
Description |
TResult |
resultContent |
|
System.String |
method |
|
System.String |
requestId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|