LengthHeaderMessageHandler Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LengthHeaderMessageHandler(IDuplexPipe, IJsonRpcMessageFormatter) |
Initializes a new instance of the LengthHeaderMessageHandler class. |
LengthHeaderMessageHandler(PipeWriter, PipeReader, IJsonRpcMessageFormatter) |
Initializes a new instance of the LengthHeaderMessageHandler class. |
LengthHeaderMessageHandler(Stream, Stream, IJsonRpcMessageFormatter) |
Initializes a new instance of the LengthHeaderMessageHandler class. |
LengthHeaderMessageHandler(IDuplexPipe, IJsonRpcMessageFormatter)
Initializes a new instance of the LengthHeaderMessageHandler class.
public LengthHeaderMessageHandler (System.IO.Pipelines.IDuplexPipe pipe, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.LengthHeaderMessageHandler : System.IO.Pipelines.IDuplexPipe * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.LengthHeaderMessageHandler
Public Sub New (pipe As IDuplexPipe, formatter As IJsonRpcMessageFormatter)
Parameters
- pipe
- IDuplexPipe
The reader and writer to use for receiving/transmitting messages.
- formatter
- IJsonRpcMessageFormatter
The formatter to use for message serialization.
Applies to
LengthHeaderMessageHandler(PipeWriter, PipeReader, IJsonRpcMessageFormatter)
Initializes a new instance of the LengthHeaderMessageHandler class.
public LengthHeaderMessageHandler (System.IO.Pipelines.PipeWriter writer, System.IO.Pipelines.PipeReader reader, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
public LengthHeaderMessageHandler (System.IO.Pipelines.PipeWriter? writer, System.IO.Pipelines.PipeReader? reader, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.LengthHeaderMessageHandler : System.IO.Pipelines.PipeWriter * System.IO.Pipelines.PipeReader * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.LengthHeaderMessageHandler
Public Sub New (writer As PipeWriter, reader As PipeReader, formatter As IJsonRpcMessageFormatter)
Parameters
- writer
- PipeWriter
The writer to use for transmitting messages.
- reader
- PipeReader
The reader to use for receiving messages.
- formatter
- IJsonRpcMessageFormatter
The formatter to use for message serialization.
Applies to
LengthHeaderMessageHandler(Stream, Stream, IJsonRpcMessageFormatter)
Initializes a new instance of the LengthHeaderMessageHandler class.
public LengthHeaderMessageHandler (System.IO.Stream sendingStream, System.IO.Stream receivingStream, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
public LengthHeaderMessageHandler (System.IO.Stream? sendingStream, System.IO.Stream? receivingStream, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.LengthHeaderMessageHandler : System.IO.Stream * System.IO.Stream * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.LengthHeaderMessageHandler
Public Sub New (sendingStream As Stream, receivingStream As Stream, formatter As IJsonRpcMessageFormatter)
Parameters
- sendingStream
- Stream
The stream to use for transmitting messages.
- receivingStream
- Stream
The stream to use for receiving messages.
- formatter
- IJsonRpcMessageFormatter
The formatter to use to serialize JsonRpcMessage instances.