Datasnap.DSServer.TDSServer.NotifyCallback

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function NotifyCallback(const ChannelName: string;  const ClientId: string; const CallbackId: string; const Msg: TJSONValue; out Response: TJSONValue; Timeout: Cardinal = INFINITE; const ArgType: Integer = TDBXCallback.ArgJson): Boolean; overload; deprecated 'ChannelName is no longer required';
function NotifyCallback(const ClientId: string;  const CallbackId: string; const Msg: TJSONValue; out Response: TJSONValue; Timeout: Cardinal = INFINITE; const ArgType: Integer = TDBXCallback.ArgJson): Boolean; overload;

C++

bool __fastcall NotifyCallback _DEPRECATED_ATTRIBUTE1("ChannelName is no longer required") (const System::UnicodeString ChannelName, const System::UnicodeString ClientId, const System::UnicodeString CallbackId, System::Json::TJSONValue* const Msg, /* out */ System::Json::TJSONValue* &Response, unsigned Timeout = (unsigned)(0xffffffff), const int ArgType = 0x1)/* overload */;
bool __fastcall NotifyCallback(const System::UnicodeString ClientId, const System::UnicodeString CallbackId, System::Json::TJSONValue* const Msg, /* out */ System::Json::TJSONValue* &Response, unsigned Timeout = (unsigned)(0xffffffff), const int ArgType = 0x1)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
Datasnap.DSServer.pas
Datasnap.DSServer.hpp
Datasnap.DSServer TDSServer

Description

Effectue une livraison synchrone de messages à un rappel.

La méthode NotifyCallback effectue une livraison synchrone de messages à un rappel situé dans un canal client. NotifyCallback renvoie True si la livraison a réussi, False sinon. Appelez NotifyCallback avec les paramètres ChannelName, ClientId, CallbackId, Msg, Response, Timeout et ArgType.

ChannelName représente le nom du rappel de canal.

ClientId représente l'identificateur du rappel du canal client.

CallbackId est un string représentant l'identificateur de rappel.

Msg est un TJSONValue contenant le message à être diffusé.

Response est un TJSONValue contenant la réponse du rappel de canal.

Timeout représente l'intervalle du délai d'attente en millisecondes. Par défaut, il est défini à INFINITE.

ArgType représente un argument JSON.

Voir aussi