Share via


JsonRpcProxyOptions Class

Definition

Options that may customize how a dynamically generated client proxy object calls into a JsonRpc instance.

public class JsonRpcProxyOptions
type JsonRpcProxyOptions = class
Public Class JsonRpcProxyOptions
Inheritance
JsonRpcProxyOptions

Constructors

JsonRpcProxyOptions()

Initializes a new instance of the JsonRpcProxyOptions class.

JsonRpcProxyOptions(JsonRpcProxyOptions)

Initializes a new instance of the JsonRpcProxyOptions class with properties initialized from another instance.

Properties

EventNameTransform

Gets or sets a function that takes the CLR event name and returns the RPC event name used in notifications. This method is useful for adding prefixes to all events, or making them camelCased.

MethodNameTransform

Gets or sets a function that takes the CLR method name and returns the RPC method name. This method is useful for adding prefixes to all methods, or making them camelCased.

ServerRequiresNamedArguments

Gets or sets a value indicating whether the client proxy will pass named arguments (i.e. an args object) instead of the default positional arguments (i.e. an args array).

Applies to