JsonRpc.AddLocalRpcTarget 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| AddLocalRpcTarget(Object, JsonRpcTargetOptions) |
将指定的目标添加为接收传入消息时要调用的对象。 目标对象不应相互继承,并按添加它们的顺序调用。 |
| AddLocalRpcTarget(Type, Object, JsonRpcTargetOptions) | |
| AddLocalRpcTarget(Object) |
将指定的目标添加为接收传入消息时要调用的对象。 目标对象不应相互继承,并按添加它们的顺序调用。 |
| AddLocalRpcTarget<T>(T, JsonRpcTargetOptions) |
AddLocalRpcTarget(Object, JsonRpcTargetOptions)
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
将指定的目标添加为接收传入消息时要调用的对象。 目标对象不应相互继承,并按添加它们的顺序调用。
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)
参数
- target
- Object
接收传入消息时要调用的目标。
- options
- JsonRpcTargetOptions
一组自定义设置,用于注册目标对象的方式。 如果 null,将使用默认选项。
适用于
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)
参数
- exposingMembersOn
- Type
- target
- Object
- options
- JsonRpcTargetOptions
例外
如果调用后StartListening()调用且为 false,则AllowModificationWhileListening引发 。
适用于
AddLocalRpcTarget(Object)
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
- Source:
- JsonRpc.cs
将指定的目标添加为接收传入消息时要调用的对象。 目标对象不应相互继承,并按添加它们的顺序调用。
public void AddLocalRpcTarget(object target);
member this.AddLocalRpcTarget : obj -> unit
Public Sub AddLocalRpcTarget (target As Object)
参数
- target
- Object
接收传入消息时要调用的目标。
适用于
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)
类型参数
- T
参数
- target
- T
- options
- JsonRpcTargetOptions