DelegatingServiceJsonRpcDescriptor.CreateHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.