/// <summary> /// Initializes a new instance of the <see cref="NewLineDelimitedMessageHandler"/> class. /// </summary> /// <param name="writer">The writer to use for transmitting messages.</param> /// <param name="reader">The reader to use for receiving messages.</param> /// <param name="formatter">The formatter used to serialize messages. Only UTF-8 formatters are supported.</param> public NewLineDelimitedMessageHandler(PipeWriter?writer, PipeReader?reader, IJsonRpcMessageTextFormatter formatter) : base(writer, reader, formatter) { this.CommonConstructor(); }
/// <summary> /// Initializes a new instance of the <see cref="NewLineDelimitedMessageHandler"/> class. /// </summary> /// <param name="writer">The stream to use for transmitting messages.</param> /// <param name="reader">The stream to use for receiving messages.</param> /// <param name="formatter">The formatter used to serialize messages. Only UTF-8 formatters are supported.</param> public NewLineDelimitedMessageHandler(Stream writer, Stream reader, IJsonRpcMessageTextFormatter formatter) : base(writer, reader, formatter) { this.CommonConstructor(); }
/// <summary> /// Initializes a new instance of the <see cref="NewLineDelimitedMessageHandler"/> class. /// </summary> /// <param name="pipe">The reader and writer to use for receiving/transmitting messages.</param> /// <param name="formatter">The formatter used to serialize messages. Only UTF-8 formatters are supported.</param> public NewLineDelimitedMessageHandler(IDuplexPipe pipe, IJsonRpcMessageTextFormatter formatter) : base(pipe, formatter) { this.CommonConstructor(); }