Click or drag to resize

PartwiseStreamMessageWriter Class

[This is preliminary documentation and is subject to change.]

Writes JSON RPC messages to a Stream, in the format specified in Microsoft Language Server Protocol (https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md).
Inheritance Hierarchy
SystemObject
  JsonRpc.StreamsMessageWriter
    JsonRpc.StreamsPartwiseStreamMessageWriter

Namespace:  JsonRpc.Streams
Assembly:  JsonRpc.Streams (in JsonRpc.Streams.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public class PartwiseStreamMessageWriter : MessageWriter

The PartwiseStreamMessageWriter type exposes the following members.

Constructors
  NameDescription
Public methodPartwiseStreamMessageWriter
Initializes a message writer from Stream.
Top
Properties
  NameDescription
Public propertyContentType
Content-Type header value of the emitted messages.
Protected propertyDisposalToken (Inherited from MessageWriter.)
Public propertyEmitContentCharset
Whether to follow the ContentType with a "charset=xxx" part when writing messages to the stream. This property has no effect if ContentType is null.
Public propertyEncoding
Encoding of the emitted messages.
Public propertyLeaveStreamOpen
Whether to leave Stream open when disposing this instance.
Public propertyStream
The underlying stream to write messages into.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from MessageWriter.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the PartwiseStreamMessageWriter and optionally releases the managed resources
(Overrides MessageWriterDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteAsync
Asynchronously writes a message.
(Overrides MessageWriterWriteAsync(Message, CancellationToken).)
Top
See Also