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.