Share via


DelegatingServiceJsonRpcDescriptor.CreateHandler Method

Definition

Initializes a new instance of IJsonRpcMessageHandler for use in a new server or client.

protected internal override StreamJsonRpc.IJsonRpcMessageHandler CreateHandler (System.IO.Pipelines.IDuplexPipe pipe, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
override this.CreateHandler : System.IO.Pipelines.IDuplexPipe * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.IJsonRpcMessageHandler
Protected Friend Overrides Function CreateHandler (pipe As IDuplexPipe, formatter As IJsonRpcMessageFormatter) As IJsonRpcMessageHandler

Parameters

pipe
IDuplexPipe

The pipe the handler should use to send and receive messages.

formatter
IJsonRpcMessageFormatter

The IJsonRpcMessageFormatter the handler should use to encode messages.

Returns

The new message handler.

Applies to