JsonRpc.NotifyWithParameterObjectAsync 메서드

정의

오버로드

NotifyWithParameterObjectAsync(String, Object, IReadOnlyDictionary<String,Type>)

응답을 기다리지 않고 JSON-RPC 서버에서 지정된 메서드를 호출합니다.

NotifyWithParameterObjectAsync(String, Object)

서버에서 메서드를 호출하고 완료된 fire-and-forget 스타일을 기다리지 마세요. 매개 변수는 개체로 전달됩니다.

NotifyWithParameterObjectAsync(String, Object, IReadOnlyDictionary<String,Type>)

응답을 기다리지 않고 JSON-RPC 서버에서 지정된 메서드를 호출합니다.

public System.Threading.Tasks.Task NotifyWithParameterObjectAsync (string targetName, object? argument, System.Collections.Generic.IReadOnlyDictionary<string,Type>? argumentDeclaredTypes);
member this.NotifyWithParameterObjectAsync : string * obj * System.Collections.Generic.IReadOnlyDictionary<string, Type> -> System.Threading.Tasks.Task
Public Function NotifyWithParameterObjectAsync (targetName As String, argument As Object, argumentDeclaredTypes As IReadOnlyDictionary(Of String, Type)) As Task

매개 변수

targetName
String

호출할 메서드의 이름입니다. null이거나 비어 있지 않아야 합니다.

argument
Object

속성이 대상 메서드의 매개 변수 이름과 일치하는 개체입니다. 선택한 IJsonRpcMessageFormatter을 사용하여 serialize할 수 있어야 합니다.

argumentDeclaredTypes
IReadOnlyDictionary<String,Type>

서버에서 Type 유일한 요소 argumentsIReadOnlyDictionary<TKey,TValue> 제공된 각 항목이 형식화될 것으로 예상되는 방식을 설명하는 개체 사전입니다. 지정한 경우 첫 번째 요소 arguments에 포함된 사전과 정확히 동일한 키 집합이 있어야 하며 값을 포함하지 않아야 null 합니다.

반환

알림이 전송될 때 완료되는 작업입니다.

설명

서버 쪽에서 발생하는 모든 오류는 무시됩니다.

적용 대상

NotifyWithParameterObjectAsync(String, Object)

서버에서 메서드를 호출하고 완료된 fire-and-forget 스타일을 기다리지 마세요. 매개 변수는 개체로 전달됩니다.

public System.Threading.Tasks.Task NotifyWithParameterObjectAsync (string targetName, object argument = default);
public System.Threading.Tasks.Task NotifyWithParameterObjectAsync (string targetName, object? argument = default);
member this.NotifyWithParameterObjectAsync : string * obj -> System.Threading.Tasks.Task
Public Function NotifyWithParameterObjectAsync (targetName As String, Optional argument As Object = Nothing) As Task

매개 변수

targetName
String

서버에서 호출할 메서드의 이름입니다. null 또는 빈 문자열이 아니어야 합니다.

argument
Object

메서드 인수는 JSON으로 직렬화할 수 있어야 합니다.

반환

알림 요청이 채널로 서버로 전송되면 완료되는 작업입니다.

예외

null인 경우 targetName

이 인스턴스가 JsonRpc 삭제된 경우

설명

서버 쪽에서 발생하는 모든 오류는 무시됩니다.

적용 대상