TsgcWSPClient_sgcOlaylar › OnRPCResult

OnRPCResult Olay

Sunucu başarılı bir RPC yanıtı döndürdüğünde tetiklenir.

Sözdizimi

property OnRPCResult: TsgcWSRPCResultEvent;
// TsgcWSRPCResultEvent = procedure(Connection: TsgcWSConnection; Id, Result: string) of object

Varsayılan Değer

Remarks

Id, RPC'ye geçirilen değerle eşleşir (veya Id boş olduğunda bileşen tarafından üretilen Guid ile). Result, sunucu yükünü taşır. İşleyici içinde orijinal istek değerlerini almak için GetRPCMethodById ve GetRPCParamsById kullanın.

Örnek

procedure TForm1.oProtocolRPCResult(Connection: TsgcWSConnection; Id, Result: string);
begin
  Memo1.Lines.Add(Format('rpc %s ok: %s', [Id, Result]));
end;

Olaylara Dön