git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@68 b6239004-a887-0f4b-9937-50029ccdca16
58 lines
1.6 KiB
ObjectPascal
58 lines
1.6 KiB
ObjectPascal
unit LoadBalancingService_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. }
|
|
{----------------------------------------------------------------------------}
|
|
|
|
{$I Remobjects.inc}
|
|
|
|
interface
|
|
|
|
uses
|
|
{vcl:} Classes, SysUtils,
|
|
{RemObjects:} uROXMLIntf, uROClientIntf, uROTypes, uROServer, uROServerIntf, uROSessions,
|
|
{Required:} uRORemoteDataModule,
|
|
{Generated:} LoadBalancingLibrary_Intf;
|
|
|
|
type
|
|
{ TLoadBalancingService }
|
|
TLoadBalancingService = class(TRORemoteDataModule, ILoadBalancingService)
|
|
private
|
|
protected
|
|
{ ILoadBalancingService methods }
|
|
function Sum(const A: Integer; const B: Integer): Integer;
|
|
function GetServerTime: DateTime;
|
|
end;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
uses
|
|
{Generated:} LoadBalancingLibrary_Invk;
|
|
|
|
procedure Create_LoadBalancingService(out anInstance : IUnknown);
|
|
begin
|
|
anInstance := TLoadBalancingService.Create(nil);
|
|
end;
|
|
|
|
{ LoadBalancingService }
|
|
function TLoadBalancingService.Sum(const A: Integer; const B: Integer): Integer;
|
|
begin
|
|
result := A + B;
|
|
end;
|
|
|
|
function TLoadBalancingService.GetServerTime: DateTime;
|
|
begin
|
|
result := Now;
|
|
end;
|
|
|
|
initialization
|
|
TROClassFactory.Create('LoadBalancingService', Create_LoadBalancingService, TLoadBalancingService_Invoker);
|
|
|
|
finalization
|
|
|
|
end.
|