JsonRpc.AddLocalRpcTarget 메서드

정의

오버로드

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

들어오는 메시지를 받을 때 호출할 수 있는 개체로 지정된 대상을 추가합니다. 대상 개체는 서로 상속되지 않아야 하며 추가되는 순서대로 호출됩니다.

AddLocalRpcTarget(Object)

들어오는 메시지를 받을 때 호출할 수 있는 개체로 지정된 대상을 추가합니다. 대상 개체는 서로 상속되지 않아야 하며 추가되는 순서대로 호출됩니다.

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)

매개 변수

exposingMembersOn
Type
target
Object

예외

호출된 후 StartListening() 호출 AllowModificationWhileListening 되고 호출되면 throw됩니다 false.

적용 대상

AddLocalRpcTarget(Object, JsonRpcTargetOptions)

들어오는 메시지를 받을 때 호출할 수 있는 개체로 지정된 대상을 추가합니다. 대상 개체는 서로 상속되지 않아야 하며 추가되는 순서대로 호출됩니다.

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(Object)

들어오는 메시지를 받을 때 호출할 수 있는 개체로 지정된 대상을 추가합니다. 대상 개체는 서로 상속되지 않아야 하며 추가되는 순서대로 호출됩니다.

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

적용 대상