Componentes.Terceros.RemObj.../internal/5.0.23.613/1/RemObjects SDK for Delphi/Samples/Auto Server/AutoServerService_Impl.pas
david d99a44999f - 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

git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@7 b6239004-a887-0f4b-9937-50029ccdca16
2007-09-10 13:36:58 +00:00

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.