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