共用方式為


StreamMessageHandler(Stream, Stream, IJsonRpcMessageFormatter) 建構函式

定義

初始化 StreamMessageHandler 類別的新執行個體。

protected StreamMessageHandler (System.IO.Stream sendingStream, System.IO.Stream receivingStream, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
protected StreamMessageHandler (System.IO.Stream? sendingStream, System.IO.Stream? receivingStream, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
new StreamJsonRpc.StreamMessageHandler : System.IO.Stream * System.IO.Stream * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.StreamMessageHandler
Protected Sub New (sendingStream As Stream, receivingStream As Stream, formatter As IJsonRpcMessageFormatter)

參數

sendingStream
Stream

用來傳輸訊息的資料流程。 可能是 Null。

receivingStream
Stream

用來接收訊息的資料流程。 可能是 Null。

formatter
IJsonRpcMessageFormatter

用來序列化 JsonRpcMessage 實例的格式器。

適用於