- 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
56 lines
1.5 KiB
ObjectPascal
56 lines
1.5 KiB
ObjectPascal
unit AutoServerService_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:} AutoServerLibrary_Intf;
|
|
|
|
type
|
|
{ TAutoServerService }
|
|
TAutoServerService = class(TRORemotable, IAutoServerService)
|
|
private
|
|
protected
|
|
{ IAutoServerService methods }
|
|
function GetServerTime: DateTime;
|
|
function GetEnvironment(const Environment: string): string;
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses
|
|
{Generated:} AutoServerLibrary_Invk;
|
|
|
|
procedure Create_AutoServerService(out anInstance: IUnknown);
|
|
begin
|
|
anInstance := TAutoServerService.Create;
|
|
end;
|
|
|
|
{ AutoServerService }
|
|
|
|
function TAutoServerService.GetServerTime: DateTime;
|
|
begin
|
|
Result := Now;
|
|
end;
|
|
|
|
function TAutoServerService.GetEnvironment(const Environment: string): string;
|
|
begin
|
|
Result := GetEnvironmentVariable(Environment);
|
|
end;
|
|
|
|
initialization
|
|
TROClassFactory.Create('AutoServerService', Create_AutoServerService, TAutoServerService_Invoker);
|
|
|
|
finalization
|
|
|
|
end.
|
|
|