Componentes.Terceros.RemObj.../internal/5.0.23.613/1/RemObjects SDK for Delphi/Samples/Proxy Server/ProxyServerMainService_Impl.pas
david 2824855ea7 - Modificación del paquete RemObjects_Core_D10 para que sea un paquete de runtime/designtime (antes era designtime sólo)
- 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
2007-09-10 14:06:19 +00:00

64 lines
1.8 KiB
ObjectPascal

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.