Componentes.Terceros.RemObj.../internal/6.0.43.801/1/RemObjects Samples/RemObjects SDK for Delphi/Load Balancing/LoadBalancingService_Impl.pas
2010-01-29 16:17:43 +00:00

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.