Componentes.Terceros.RemObj.../internal/5.0.23.613/1/RemObjects SDK for Delphi/Samples/Dispatch Notifier/DispatchNotifierLibrary_Invk.pas

53 lines
1.8 KiB
ObjectPascal
Raw Normal View History

unit DispatchNotifierLibrary_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. }
{----------------------------------------------------------------------------}
interface
uses
{vcl:} Classes,
{RemObjects:} uROServer, uROServerIntf, uROTypes, uROClientIntf,
{Generated:} DispatchNotifierLibrary_Intf;
type
TDispatchNotifierService_Invoker = class(TROInvoker)
private
protected
published
procedure Invoke_SendMessage(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TDispatchNotifierService_Invoker }
procedure TDispatchNotifierService_Invoker.Invoke_SendMessage(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure SendMessage(const aMessage: String); }
var
aMessage: String;
begin
try
__Message.Read('aMessage', TypeInfo(String), aMessage, []);
(__Instance as IDispatchNotifierService).SendMessage(aMessage);
__Message.InitializeResponseMessage(__Transport, 'DispatchNotifierLibrary', 'DispatchNotifierService', 'SendMessageResponse');
__Message.Finalize;
__oResponseOptions := [roNoResponse];
finally
end;
end;
end.