JsonRpc.AddLocalRpcTarget Method
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.
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)
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
- options
- JsonRpcTargetOptions
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
- options
- JsonRpcTargetOptions