Freigeben über


ServiceJsonRpcDescriptor.CreateHandler Method

Definition

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.

Applies to