HeaderDelimitedMessageHandler 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HeaderDelimitedMessageHandler(Stream)
初始化 HeaderDelimitedMessageHandler 類別的新執行個體。
public HeaderDelimitedMessageHandler (System.IO.Stream duplexStream);
new StreamJsonRpc.HeaderDelimitedMessageHandler : System.IO.Stream -> StreamJsonRpc.HeaderDelimitedMessageHandler
Public Sub New (duplexStream As Stream)
參數
- duplexStream
- Stream
用於傳輸和接收訊息的資料流程。
適用於
HeaderDelimitedMessageHandler(IDuplexPipe, IJsonRpcMessageFormatter)
初始化 HeaderDelimitedMessageHandler 類別的新執行個體。
public HeaderDelimitedMessageHandler (System.IO.Pipelines.IDuplexPipe pipe, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.HeaderDelimitedMessageHandler : System.IO.Pipelines.IDuplexPipe * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.HeaderDelimitedMessageHandler
Public Sub New (pipe As IDuplexPipe, formatter As IJsonRpcMessageFormatter)
參數
- pipe
- IDuplexPipe
用於交換訊息的雙工管道。
- formatter
- IJsonRpcMessageFormatter
用來序列化 JsonRpcMessage 實例的格式器。
適用於
HeaderDelimitedMessageHandler(Stream, IJsonRpcMessageFormatter)
初始化 HeaderDelimitedMessageHandler 類別的新執行個體。
public HeaderDelimitedMessageHandler (System.IO.Stream duplexStream, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.HeaderDelimitedMessageHandler : System.IO.Stream * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.HeaderDelimitedMessageHandler
Public Sub New (duplexStream As Stream, formatter As IJsonRpcMessageFormatter)
參數
- duplexStream
- Stream
用於交換訊息的資料流程。
- formatter
- IJsonRpcMessageFormatter
用來序列化 JsonRpcMessage 實例的格式器。
適用於
HeaderDelimitedMessageHandler(Stream, Stream)
初始化 HeaderDelimitedMessageHandler 類別的新執行個體。
public HeaderDelimitedMessageHandler (System.IO.Stream sendingStream, System.IO.Stream receivingStream);
public HeaderDelimitedMessageHandler (System.IO.Stream? sendingStream, System.IO.Stream? receivingStream);
new StreamJsonRpc.HeaderDelimitedMessageHandler : System.IO.Stream * System.IO.Stream -> StreamJsonRpc.HeaderDelimitedMessageHandler
Public Sub New (sendingStream As Stream, receivingStream As Stream)
參數
- sendingStream
- Stream
用於傳輸訊息的資料流程。
- receivingStream
- Stream
要用於接收訊息的資料流程。
適用於
HeaderDelimitedMessageHandler(PipeWriter, PipeReader, IJsonRpcMessageFormatter)
初始化 HeaderDelimitedMessageHandler 類別的新執行個體。
public HeaderDelimitedMessageHandler (System.IO.Pipelines.PipeWriter writer, System.IO.Pipelines.PipeReader reader, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
public HeaderDelimitedMessageHandler (System.IO.Pipelines.PipeWriter? writer, System.IO.Pipelines.PipeReader? reader, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.HeaderDelimitedMessageHandler : System.IO.Pipelines.PipeWriter * System.IO.Pipelines.PipeReader * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.HeaderDelimitedMessageHandler
Public Sub New (writer As PipeWriter, reader As PipeReader, formatter As IJsonRpcMessageFormatter)
參數
- writer
- PipeWriter
用於傳輸訊息的寫入器。
- reader
- PipeReader
要用於接收訊息的讀取器。
- formatter
- IJsonRpcMessageFormatter
用來序列化 JsonRpcMessage 實例的格式器。
適用於
HeaderDelimitedMessageHandler(Stream, Stream, IJsonRpcMessageFormatter)
初始化 HeaderDelimitedMessageHandler 類別的新執行個體。
public HeaderDelimitedMessageHandler (System.IO.Stream sendingStream, System.IO.Stream receivingStream, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
public HeaderDelimitedMessageHandler (System.IO.Stream? sendingStream, System.IO.Stream? receivingStream, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.HeaderDelimitedMessageHandler : System.IO.Stream * System.IO.Stream * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.HeaderDelimitedMessageHandler
Public Sub New (sendingStream As Stream, receivingStream As Stream, formatter As IJsonRpcMessageFormatter)
參數
- sendingStream
- Stream
用於傳輸訊息的資料流程。
- receivingStream
- Stream
要用於接收訊息的資料流程。
- formatter
- IJsonRpcMessageFormatter
用來序列化 JsonRpcMessage 實例的格式器。