57 lines
1.7 KiB
ObjectPascal
57 lines
1.7 KiB
ObjectPascal
|
|
unit MessageEnvelopesService_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:} MessageEnvelopesLibrary_Intf;
|
||
|
|
|
||
|
|
type
|
||
|
|
{ TMessageEnvelopesService }
|
||
|
|
TMessageEnvelopesService = class(TRORemoteDataModule, IMessageEnvelopesService)
|
||
|
|
private
|
||
|
|
protected
|
||
|
|
{ IMessageEnvelopesService methods }
|
||
|
|
function Echo(const AStr: AnsiString): AnsiString;
|
||
|
|
end;
|
||
|
|
|
||
|
|
implementation
|
||
|
|
|
||
|
|
{$R *.dfm}
|
||
|
|
uses
|
||
|
|
{Generated:} MessageEnvelopesLibrary_Invk, MessageEnvelopes_ServerMain;
|
||
|
|
|
||
|
|
procedure Create_MessageEnvelopesService(out anInstance : IUnknown);
|
||
|
|
begin
|
||
|
|
anInstance := TMessageEnvelopesService.Create(nil);
|
||
|
|
end;
|
||
|
|
|
||
|
|
{ MessageEnvelopesService }
|
||
|
|
function TMessageEnvelopesService.Echo(const AStr: AnsiString): AnsiString;
|
||
|
|
begin
|
||
|
|
MessageEnvelopes_ServerMainForm.Log('Received: '+AStr);
|
||
|
|
Result := AStr;
|
||
|
|
end;
|
||
|
|
|
||
|
|
var
|
||
|
|
fClassFactory: IROClassFactory;
|
||
|
|
initialization
|
||
|
|
fClassFactory := TROClassFactory.Create('MessageEnvelopesService', Create_MessageEnvelopesService, TMessageEnvelopesService_Invoker);
|
||
|
|
|
||
|
|
finalization
|
||
|
|
UnRegisterClassFactory(fClassFactory);
|
||
|
|
fClassFactory := nil;
|
||
|
|
|
||
|
|
end.
|