- Recompilación de RO para poner RemObjects_Core_D10 como paquete de runtime/designtime. git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@3 b6239004-a887-0f4b-9937-50029ccdca16
64 lines
1.8 KiB
ObjectPascal
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.
|
|
|