JsonRpc.AddLocalRpcTarget Method

Definition

Overloads

AddLocalRpcTarget(Type, Object, JsonRpcTargetOptions)
AddLocalRpcTarget(Object, JsonRpcTargetOptions)

Adds the specified target as possible object to invoke when incoming messages are received. The target object should not inherit from each other and are invoked in the order which they are added.

AddLocalRpcTarget(Object)

Adds the specified target as possible object to invoke when incoming messages are received. The target object should not inherit from each other and are invoked in the order which they are added.

AddLocalRpcTarget<T>(T, JsonRpcTargetOptions)

AddLocalRpcTarget(Type, Object, JsonRpcTargetOptions)

StreamJsonRpc.Reflection.RpcTargetInfo.AddLocalRpcTarget(System.Type,System.Object,StreamJsonRpc.JsonRpcTargetOptions,System.Boolean)
public void AddLocalRpcTarget (Type exposingMembersOn, object target, StreamJsonRpc.JsonRpcTargetOptions? options);
member this.AddLocalRpcTarget : Type * obj * StreamJsonRpc.JsonRpcTargetOptions -> unit
Public Sub AddLocalRpcTarget (exposingMembersOn As Type, target As Object, options As JsonRpcTargetOptions)

Parameters

exposingMembersOn
Type
target
Object

Exceptions

Thrown if called after StartListening() is called and AllowModificationWhileListening is false.

Applies to

AddLocalRpcTarget(Object, JsonRpcTargetOptions)

Adds the specified target as possible object to invoke when incoming messages are received. The target object should not inherit from each other and are invoked in the order which they are added.

public void AddLocalRpcTarget (object target, StreamJsonRpc.JsonRpcTargetOptions options);
public void AddLocalRpcTarget (object target, StreamJsonRpc.JsonRpcTargetOptions? options);
member this.AddLocalRpcTarget : obj * StreamJsonRpc.JsonRpcTargetOptions -> unit
Public Sub AddLocalRpcTarget (target As Object, options As JsonRpcTargetOptions)

Parameters

target
Object

Target to invoke when incoming messages are received.

options
JsonRpcTargetOptions

A set of customizations for how the target object is registered. If null, default options will be used.

Applies to

AddLocalRpcTarget(Object)

Adds the specified target as possible object to invoke when incoming messages are received. The target object should not inherit from each other and are invoked in the order which they are added.

public void AddLocalRpcTarget (object target);
member this.AddLocalRpcTarget : obj -> unit
Public Sub AddLocalRpcTarget (target As Object)

Parameters

target
Object

Target to invoke when incoming messages are received.

Applies to

AddLocalRpcTarget<T>(T, JsonRpcTargetOptions)

public void AddLocalRpcTarget<T> (T target, StreamJsonRpc.JsonRpcTargetOptions? options);
member this.AddLocalRpcTarget : 'T * StreamJsonRpc.JsonRpcTargetOptions -> unit
Public Sub AddLocalRpcTarget(Of T) (target As T, options As JsonRpcTargetOptions)

Type Parameters

T

Parameters

target
T

Applies to