Datasnap.DSServer.TDSServer.NotifyCallback

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
Datasnap.DSServer.pas
Datasnap.DSServer.hpp
Datasnap.DSServer TDSServer

Beschreibung

Führt eine synchrone Auslieferung einer Botschaft an eine Callback-Funktion aus.

Die Methode NotifyCallback führt eine synchrone Auslieferung einer Botschaft an eine Callback-Funktion, die sich in einem Client-Kanal befindet. NotifyCallback gibt True zurück, wenn die Auslieferung erfolgreich ist. Ansonsten wird False zurückgegeben. Rufen Sie NotifyCallback mit den Parametern ChannelName, ClientId, CallbackId, Msg, Response, Timeout und ArgType auf.

ChannelName repräsentiert den Namen des Kanal-Callbacks.

ClientId repräsentiert den Bezeichner der Callback-Funktion in einem Client-Kanal.

CallbackId ist ein String, der den Bezeichner der Callback-Funktion repräsentiert.

Msg ist eine Klasse TJSONValue, die die zu sendende Botschaft enthält.

Response ist eine Klasse TJSONValue, die die Antwort des Kanal-Callbacks enthält.

Timeout repräsentiert das Zeitüberschreitungsintervall in Millisekunden. Standardmäßig wird dieser Parameter auf INFINITE gesetzt.

ArgType repräsentiert ein JSON-Argument.

Siehe auch