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

98 lines
3.4 KiB
ObjectPascal

unit NamedPipeLibrary_Invk;
{----------------------------------------------------------------------------}
{ This unit was automatically generated by the RemObjects SDK after reading }
{ the RODL file associated with this project . }
{ }
{ Do not modify this unit manually, or your changes will be lost when this }
{ unit is regenerated the next time you compile the project. }
{----------------------------------------------------------------------------}
{$I Remobjects.inc}
interface
uses
{vcl:} Classes,
{RemObjects:} uROXMLIntf, uROServer, uROServerIntf, uROTypes, uROClientIntf,
{Generated:} NamedPipeLibrary_Intf;
type
TNamedPipeService_Invoker = class(TROInvoker)
private
protected
public
constructor Create; override;
published
procedure Invoke_GetPath(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
procedure Invoke_GetConnectedUsersCount(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
procedure Invoke_UpTime(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TNamedPipeService_Invoker }
constructor TNamedPipeService_Invoker.Create;
begin
inherited Create;
FAbstract := False;
end;
procedure TNamedPipeService_Invoker.Invoke_GetPath(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GetPath: Widestring; }
var
lResult: Widestring;
begin
try
lResult := (__Instance as INamedPipeService).GetPath;
__Message.InitializeResponseMessage(__Transport, 'NamedPipeLibrary', 'NamedPipeService', 'GetPathResponse');
__Message.Write('Result', TypeInfo(Widestring), lResult, []);
__Message.Finalize;
__Message.UnsetAttributes(__Transport);
finally
end;
end;
procedure TNamedPipeService_Invoker.Invoke_GetConnectedUsersCount(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GetConnectedUsersCount: Integer; }
var
lResult: Integer;
begin
try
lResult := (__Instance as INamedPipeService).GetConnectedUsersCount;
__Message.InitializeResponseMessage(__Transport, 'NamedPipeLibrary', 'NamedPipeService', 'GetConnectedUsersCountResponse');
__Message.Write('Result', TypeInfo(Integer), lResult, []);
__Message.Finalize;
__Message.UnsetAttributes(__Transport);
finally
end;
end;
procedure TNamedPipeService_Invoker.Invoke_UpTime(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function UpTime: DateTime; }
var
lResult: DateTime;
begin
try
lResult := (__Instance as INamedPipeService).UpTime;
__Message.InitializeResponseMessage(__Transport, 'NamedPipeLibrary', 'NamedPipeService', 'UpTimeResponse');
__Message.Write('Result', TypeInfo(DateTime), lResult, [paIsDateTime]);
__Message.Finalize;
__Message.UnsetAttributes(__Transport);
finally
end;
end;
initialization
end.