JsonRpc.NotifyWithParameterObjectAsync メソッド

定義

オーバーロード

名前 説明
NotifyWithParameterObjectAsync(String, Object)

サーバーでメソッドを呼び出し、その完了を待たないでください。ファイア アンド フォーゲット スタイル。 パラメーターはオブジェクトとして渡されます。

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

応答を待たずに、JSON-RPC サーバーで特定のメソッドを呼び出します。

NotifyWithParameterObjectAsync(String, Object)

ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs
ソース:
JsonRpc.cs

サーバーでメソッドを呼び出し、その完了を待たないでください。ファイア アンド フォーゲット スタイル。 パラメーターはオブジェクトとして渡されます。

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 にシリアル化できる必要があります。

返品

通知要求がチャネルにサーバーに送信されるときに完了するタスク。

例外

targetName が null の場合。

JsonRpc のこのインスタンスが破棄されている場合。

注釈

サーバー側で発生したエラーはすべて無視されます。

適用対象

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を使用してシリアル化できる必要があります。

argumentDeclaredTypes
IReadOnlyDictionary<String,Type>

Type の唯一の要素で提供される IReadOnlyDictionary<TKey,TValue> 内の各エントリをサーバーが型指定する方法を記述する arguments オブジェクトのディクショナリ。 指定する場合は、argumentsの最初の要素に含まれるディクショナリとまったく同じキーセットを持ち、null 値を含まない必要があります。

返品

通知が送信されたときに完了するタスク。

注釈

サーバー側で発生したエラーはすべて無視されます。

適用対象