JsonRpcTargetOptions Class
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.
Options that may customize how a target object is added to a JsonRpc instance.
public class JsonRpcTargetOptions
type JsonRpcTargetOptions = class
Public Class JsonRpcTargetOptions
- Inheritance
-
JsonRpcTargetOptions
Constructors
JsonRpcTargetOptions() |
Initializes a new instance of the JsonRpcTargetOptions class. |
JsonRpcTargetOptions(JsonRpcTargetOptions) |
Initializes a new instance of the JsonRpcTargetOptions class. |
Properties
AllowNonPublicInvocation |
Gets or sets a value indicating whether non-public methods/events on target objects can be invoked by remote clients. |
DisposeOnDisconnect |
Gets or sets a value indicating whether to dispose of the target object when the connection with the remote party is lost. |
EventNameTransform |
Gets or sets a function that takes the CLR event name and returns the RPC event name used in notification messages. 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. |
NotifyClientOfEvents |
Gets or sets a value indicating whether events raised on the target object should be relayed to the client via a JSON-RPC notify message. |
UseSingleObjectParameterDeserialization |
Gets or sets a value indicating whether JSON-RPC named arguments should all be deserialized into the RPC method's first parameter. |