Componentes.Terceros.RemObj.../internal/5.0.35.741/1/RemObjects SDK for Delphi/Samples/Dispatch Notifier/DispatchNotifierLibrary_Intf.pas
2009-02-28 17:16:16 +00:00

96 lines
2.8 KiB
ObjectPascal

unit DispatchNotifierLibrary_Intf;
{----------------------------------------------------------------------------}
{ 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, TypInfo,
{RemObjects:} uROXMLIntf, uROClasses, uROClient, uROTypes, uROClientIntf;
const
{ Library ID }
LibraryUID = '{6DA40FCA-5FC2-40CF-8FC6-7601B1CBFDDC}';
TargetNamespace = '';
{ Service Interface ID's }
IDispatchNotifierService_IID : TGUID = '{6DA40FCA-5FC2-40CF-8FC6-7601B1CBFDDC}';
{ Event ID's }
type
{ Forward declarations }
IDispatchNotifierService = interface;
{ IDispatchNotifierService }
IDispatchNotifierService = interface
['{6DA40FCA-5FC2-40CF-8FC6-7601B1CBFDDC}']
procedure SendMessage(const aMessage: Widestring);
end;
{ CoDispatchNotifierService }
CoDispatchNotifierService = class
class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IDispatchNotifierService;
end;
{ TDispatchNotifierService_Proxy }
TDispatchNotifierService_Proxy = class(TROProxy, IDispatchNotifierService)
protected
function __GetInterfaceName:string; override;
procedure SendMessage(const aMessage: Widestring);
end;
implementation
uses
{vcl:} SysUtils,
{RemObjects:} uROEventRepository, uROSerializer, uRORes;
{ CoDispatchNotifierService }
class function CoDispatchNotifierService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IDispatchNotifierService;
begin
result := TDispatchNotifierService_Proxy.Create(aMessage, aTransportChannel);
end;
{ TDispatchNotifierService_Proxy }
function TDispatchNotifierService_Proxy.__GetInterfaceName:string;
begin
result := 'DispatchNotifierService';
end;
procedure TDispatchNotifierService_Proxy.SendMessage(const aMessage: Widestring);
begin
try
__Message.InitializeRequestMessage(__TransportChannel, 'DispatchNotifierLibrary', __InterfaceName, 'SendMessage');
__Message.Write('aMessage', TypeInfo(Widestring), aMessage, []);
__Message.Finalize;
__TransportChannel.Dispatch(__Message);
finally
__Message.UnsetAttributes(__TransportChannel);
__Message.FreeStream;
end
end;
initialization
RegisterProxyClass(IDispatchNotifierService_IID, TDispatchNotifierService_Proxy);
finalization
UnregisterProxyClass(IDispatchNotifierService_IID);
end.