- Recompilación en Delphi10 de todos los paquetes de RO para generar las DCU's en Lib\D10 - Recompilación en Delphi10 de todos los paquetes de DA para generar las DCU's en Lib\D10 git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@9 b6239004-a887-0f4b-9937-50029ccdca16
67 lines
1.9 KiB
ObjectPascal
67 lines
1.9 KiB
ObjectPascal
unit DynamicRequestService_Impl;
|
|
|
|
{----------------------------------------------------------------------------}
|
|
{ This unit was automatically generated by the RemObjects SDK after reading }
|
|
{ the RODL file associated with this project . }
|
|
{ }
|
|
{ This is where you are supposed to code the implementation of your objects. }
|
|
{----------------------------------------------------------------------------}
|
|
|
|
interface
|
|
|
|
uses
|
|
{vcl:} Classes, SysUtils,
|
|
{RemObjects:} uROClientIntf, uROTypes, uROServer, uROServerIntf, uROSessions,
|
|
{Generated:} DynamicRequestLibrary_Intf;
|
|
|
|
type
|
|
{ TDynamicRequestService }
|
|
TDynamicRequestService = class(TRORemotable, IDynamicRequestService)
|
|
private
|
|
protected
|
|
{ IDynamicRequestService methods }
|
|
function Sum(const A: Integer; const B: Integer): Integer;
|
|
function GetServerTime: DateTime;
|
|
procedure EchoPerson(const aPerson: TPerson; out anotherPerson: TPerson);
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses
|
|
{Generated:} DynamicRequestLibrary_Invk;
|
|
|
|
procedure Create_DynamicRequestService(out anInstance: IUnknown);
|
|
begin
|
|
anInstance := TDynamicRequestService.Create;
|
|
end;
|
|
|
|
{ DynamicRequestService }
|
|
|
|
function TDynamicRequestService.Sum(const A: Integer; const B: Integer): Integer;
|
|
begin
|
|
result := A + B;
|
|
end;
|
|
|
|
function TDynamicRequestService.GetServerTime: DateTime;
|
|
begin
|
|
result := Now;
|
|
end;
|
|
|
|
procedure TDynamicRequestService.EchoPerson(const aPerson: TPerson; out anotherPerson: TPerson);
|
|
begin
|
|
anotherPerson := TPerson.Create;
|
|
|
|
anotherPerson.FirstName := aPerson.FirstName;
|
|
anotherPerson.LastName := aPerson.LastName;
|
|
anotherPerson.Age := aPerson.Age;
|
|
anotherPerson.Sex := aPerson.Sex;
|
|
end;
|
|
|
|
initialization
|
|
TROClassFactory.Create('DynamicRequestService', Create_DynamicRequestService, TDynamicRequestService_Invoker);
|
|
|
|
finalization
|
|
|
|
end.
|
|
|