JsonRpc.NotifyWithParameterObjectAsync Método

Definición

Sobrecargas

Nombre Description
NotifyWithParameterObjectAsync(String, Object)

Invoque un método en el servidor y no espere a que finalice, se active y olvide el estilo. El parámetro se pasa como un objeto .

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

Invoca un método determinado en un servidor JSON-RPC sin esperar su respuesta.

NotifyWithParameterObjectAsync(String, Object)

Source:
JsonRpc.cs
Source:
JsonRpc.cs
Source:
JsonRpc.cs
Source:
JsonRpc.cs
Source:
JsonRpc.cs
Source:
JsonRpc.cs
Source:
JsonRpc.cs

Invoque un método en el servidor y no espere a que finalice, se active y olvide el estilo. El parámetro se pasa como un objeto .

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

Parámetros

targetName
String

Nombre del método que se va a invocar en el servidor. No debe ser null ni una cadena vacía.

argument
Object

El argumento del método debe ser serializable en JSON.

Devoluciones

Tarea que se completa cuando la solicitud de notificación se envía al canal al servidor.

Excepciones

Si targetName es null.

Si se ha eliminado esta instancia de JsonRpc.

Comentarios

Se omite cualquier error que se produzca en el lado servidor.

Se aplica a

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

Invoca un método determinado en un servidor JSON-RPC sin esperar su respuesta.

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

Parámetros

targetName
String

Nombre del método que se va a invocar. No debe ser null ni estar vacío.

argument
Object

Objeto cuyas propiedades coinciden con los nombres de los parámetros en el método de destino. Debe ser serializable mediante el IJsonRpcMessageFormatterseleccionado.

argumentDeclaredTypes
IReadOnlyDictionary<String,Type>

Se espera que el servidor escriba un diccionario de objetos Type que describen cómo se escribe cada entrada en el IReadOnlyDictionary<TKey,TValue> proporcionado en el único elemento de arguments. Si se especifica, debe tener exactamente el mismo conjunto de claves que el diccionario contenido en el primer elemento de argumentsy no contener valores null.

Devoluciones

Tarea que se completa cuando se ha transmitido la notificación.

Comentarios

Se omite cualquier error que se produzca en el lado servidor.

Se aplica a