ServiceJsonRpcDescriptor.CreateHandler Method

Definition

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

C++
protected:
 virtual StreamJsonRpc::IJsonRpcMessageHandler ^ CreateHandler(System::IO::Pipelines::IDuplexPipe ^ pipe, StreamJsonRpc::IJsonRpcMessageFormatter ^ formatter);

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

Produkt Versiounen
Visual Studio SDK 2019, 2022