Datasnap.DSServer.TDSServer.RegisterChannelCallback
Delphi
function RegisterChannelCallback(const ClientId: string; const CallbackId: string;
ChannelNames: TStringList; const SecurityToken: string): Boolean;
C++
bool __fastcall RegisterChannelCallback(const System::UnicodeString ClientId, const System::UnicodeString CallbackId, System::Classes::TStringList* ChannelNames, const System::UnicodeString SecurityToken);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DSServer.pas Datasnap.DSServer.hpp |
Datasnap.DSServer | TDSServer |
Description
Registers a channel callback with the current instance.
The RegisterChannelCallback method registers a channel callback with the current instance. It is expected that the callback is already created on per need bases. When the first callback registers with the client channel, the callback tunnel is created. If no client callback registers, then no resources are allocated. Hence the need for CallbackId.
ChannelName represents the name of the channel callback.
ClientId specifies the identifier of the client channel.
CallbackId specifies the identifier of the channel callback.