unit ProxyServerMainService_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:} ProxyServerMainLibrary_Intf; type { TProxyServerMainService } TProxyServerMainService = class(TRORemotable, IProxyServerMainService) private protected { IProxyServerMainService methods } function Sum(const A: Integer; const B: Integer): Integer; function GetServerTime: DateTime; function EchoStruct(const aTestStruct: TestStruct): TestStruct; end; implementation uses {Generated:} ProxyServerMainLibrary_Invk; procedure Create_ProxyServerMainService(out anInstance: IUnknown); begin anInstance := TProxyServerMainService.Create; end; { ProxyServerMainService } function TProxyServerMainService.Sum(const A: Integer; const B: Integer): Integer; begin result := A + B; end; function TProxyServerMainService.GetServerTime: DateTime; begin result := Now; end; function TProxyServerMainService.EchoStruct(const aTestStruct: TestStruct): TestStruct; begin result := TestStruct.Create; result.Name := aTestStruct.Name; result.IntNumber := aTestStruct.IntNumber; end; initialization TROClassFactory.Create('ProxyServerMainService', Create_ProxyServerMainService, TProxyServerMainService_Invoker); finalization end.