ServiceJsonRpcDescriptor.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:
virtual StreamJsonRpc::IJsonRpcMessageHandler ^ CreateHandler(System::IO::Pipelines::IDuplexPipe ^ pipe, StreamJsonRpc::IJsonRpcMessageFormatter ^ formatter);
protected virtual StreamJsonRpc.IJsonRpcMessageHandler CreateHandler (System.IO.Pipelines.IDuplexPipe pipe, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
protected internal virtual StreamJsonRpc.IJsonRpcMessageHandler CreateHandler (System.IO.Pipelines.IDuplexPipe pipe, StreamJsonRpc.IJsonRpcMessageFormatter formatter);
abstract member CreateHandler : System.IO.Pipelines.IDuplexPipe * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.IJsonRpcMessageHandler
override this.CreateHandler : System.IO.Pipelines.IDuplexPipe * StreamJsonRpc.IJsonRpcMessageFormatter -> StreamJsonRpc.IJsonRpcMessageHandler
Protected Overridable Function CreateHandler (pipe As IDuplexPipe, formatter As IJsonRpcMessageFormatter) As IJsonRpcMessageHandler
Protected Friend Overridable 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.