Share via


NewLineDelimitedMessageHandler Constructors

Definition

Overloads

NewLineDelimitedMessageHandler(IDuplexPipe, IJsonRpcMessageTextFormatter)

Initializes a new instance of the NewLineDelimitedMessageHandler class.

NewLineDelimitedMessageHandler(PipeWriter, PipeReader, IJsonRpcMessageTextFormatter)

Initializes a new instance of the NewLineDelimitedMessageHandler class.

NewLineDelimitedMessageHandler(Stream, Stream, IJsonRpcMessageTextFormatter)

Initializes a new instance of the NewLineDelimitedMessageHandler class.

NewLineDelimitedMessageHandler(IDuplexPipe, IJsonRpcMessageTextFormatter)

Initializes a new instance of the NewLineDelimitedMessageHandler class.

public NewLineDelimitedMessageHandler (System.IO.Pipelines.IDuplexPipe pipe, StreamJsonRpc.IJsonRpcMessageTextFormatter formatter);
new StreamJsonRpc.NewLineDelimitedMessageHandler : System.IO.Pipelines.IDuplexPipe * StreamJsonRpc.IJsonRpcMessageTextFormatter -> StreamJsonRpc.NewLineDelimitedMessageHandler
Public Sub New (pipe As IDuplexPipe, formatter As IJsonRpcMessageTextFormatter)

Parameters

pipe
IDuplexPipe

The reader and writer to use for receiving/transmitting messages.

formatter
IJsonRpcMessageTextFormatter

The formatter used to serialize messages. Only UTF-8 formatters are supported.

Applies to

NewLineDelimitedMessageHandler(PipeWriter, PipeReader, IJsonRpcMessageTextFormatter)

Initializes a new instance of the NewLineDelimitedMessageHandler class.

public NewLineDelimitedMessageHandler (System.IO.Pipelines.PipeWriter? writer, System.IO.Pipelines.PipeReader? reader, StreamJsonRpc.IJsonRpcMessageTextFormatter formatter);
new StreamJsonRpc.NewLineDelimitedMessageHandler : System.IO.Pipelines.PipeWriter * System.IO.Pipelines.PipeReader * StreamJsonRpc.IJsonRpcMessageTextFormatter -> StreamJsonRpc.NewLineDelimitedMessageHandler
Public Sub New (writer As PipeWriter, reader As PipeReader, formatter As IJsonRpcMessageTextFormatter)

Parameters

writer
PipeWriter

The writer to use for transmitting messages.

reader
PipeReader

The reader to use for receiving messages.

formatter
IJsonRpcMessageTextFormatter

The formatter used to serialize messages. Only UTF-8 formatters are supported.

Applies to

NewLineDelimitedMessageHandler(Stream, Stream, IJsonRpcMessageTextFormatter)

Initializes a new instance of the NewLineDelimitedMessageHandler class.

public NewLineDelimitedMessageHandler (System.IO.Stream writer, System.IO.Stream reader, StreamJsonRpc.IJsonRpcMessageTextFormatter formatter);
new StreamJsonRpc.NewLineDelimitedMessageHandler : System.IO.Stream * System.IO.Stream * StreamJsonRpc.IJsonRpcMessageTextFormatter -> StreamJsonRpc.NewLineDelimitedMessageHandler
Public Sub New (writer As Stream, reader As Stream, formatter As IJsonRpcMessageTextFormatter)

Parameters

writer
Stream

The stream to use for transmitting messages.

reader
Stream

The stream to use for receiving messages.

formatter
IJsonRpcMessageTextFormatter

The formatter used to serialize messages. Only UTF-8 formatters are supported.

Applies to