LengthHeaderMessageHandler 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LengthHeaderMessageHandler(IDuplexPipe, IJsonRpcMessageFormatter)
初始化 LengthHeaderMessageHandler 類別的新執行個體。
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)
參數
- pipe
- IDuplexPipe
用於接收/傳輸訊息的讀取器和寫入器。
- formatter
- IJsonRpcMessageFormatter
用於訊息序列化的格式器。
適用於
LengthHeaderMessageHandler(PipeWriter, PipeReader, IJsonRpcMessageFormatter)
初始化 LengthHeaderMessageHandler 類別的新執行個體。
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)
參數
- writer
- PipeWriter
用於傳輸訊息的寫入器。
- reader
- PipeReader
要用於接收訊息的讀取器。
- formatter
- IJsonRpcMessageFormatter
用於訊息序列化的格式器。
適用於
LengthHeaderMessageHandler(Stream, Stream, IJsonRpcMessageFormatter)
初始化 LengthHeaderMessageHandler 類別的新執行個體。
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)
參數
- sendingStream
- Stream
用於傳輸訊息的資料流程。
- receivingStream
- Stream
要用於接收訊息的資料流程。
- formatter
- IJsonRpcMessageFormatter
用來序列化 JsonRpcMessage 實例的格式器。