unit MultiChannelLibrary_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. } {----------------------------------------------------------------------------} interface uses {vcl:} Classes, TypInfo, {RemObjects:} uROClasses, uROClient, uROTypes, uROClientIntf; const { Library ID } LibraryUID = '{60A753C4-1ED0-4385-AD64-B6B547D42BD5}'; { Service Interface ID's } IMultiChannelService_IID : TGUID = '{DCA9C2C8-5CE4-4270-829D-503B0E9547B9}'; { Event ID's } type { Forward declarations } IMultiChannelService = interface; { IMultiChannelService } IMultiChannelService = interface ['{DCA9C2C8-5CE4-4270-829D-503B0E9547B9}'] function GetServerTime: DateTime; end; { CoMultiChannelService } CoMultiChannelService = class class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IMultiChannelService; end; { TMultiChannelService_Proxy } TMultiChannelService_Proxy = class(TROProxy, IMultiChannelService) protected function __GetInterfaceName:string; override; function GetServerTime: DateTime; end; implementation uses {vcl:} SysUtils, {RemObjects:} uROEventRepository, uRORes; { CoMultiChannelService } class function CoMultiChannelService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IMultiChannelService; begin result := TMultiChannelService_Proxy.Create(aMessage, aTransportChannel); end; { TMultiChannelService_Proxy } function TMultiChannelService_Proxy.__GetInterfaceName:string; begin result := 'MultiChannelService'; end; function TMultiChannelService_Proxy.GetServerTime: DateTime; begin try __Message.InitializeRequestMessage(__TransportChannel, 'MultiChannelLibrary', __InterfaceName, 'GetServerTime'); __Message.Finalize; __TransportChannel.Dispatch(__Message); __Message.Read('Result', TypeInfo(DateTime), result, [paIsDateTime]); finally __Message.FreeStream; end end; initialization RegisterProxyClass(IMultiChannelService_IID, TMultiChannelService_Proxy); finalization UnregisterProxyClass(IMultiChannelService_IID); end.