THYLocalService
Overview
Use the THYLocalService component in a Hydra application for accessing any local service implemented in either the host application itself or in a Hydra module loaded by the host application.
THYLocalService descends from the same ancestor as TRORemoteService and works in a similar fashion. Both components support service interfaces dynamically. TRORemoteService supports a service interface once the attached channel component is connected to a remote server that publishes the service. THYLocalService supports a service interface once it has been registered with a class factory in the host application or in any loaded module.
Location
- Unit: Hydra.RO.LocalService.pas
- Ancestry: TROComponent | THYLocalService
ActivateInstance protected virtual
Activates specified instance of a service if this instance supports IROObjectActivation.
procedure ActivateInstance(const anInstance: IInterface)
Parameters:
- anInstance: Reference to an instance of a service.
ClientID
Gets or sets session ID.
property ClientID: TGUID read write
DeactivateInstance protected virtual
Activates specified instance of a service if this instance supports IROObjectActivation.
procedure DeactivateInstance(const anInstance: IInterface)
Parameters:
- anInstance: Reference to an instance of a service.
HoldsInstance
Gets a value that indicates whether service is created by the component.
property HoldsInstance: Boolean read
ReleaseInstance
Releases previously created instance of a service.
procedure ReleaseInstance
ServiceName
Gets or sets name of the service.
property ServiceName: string read write
ClientID
Gets or sets session ID.
property ClientID: TGUID read write
HoldsInstance
Gets a value that indicates whether service is created by the component.
property HoldsInstance: Boolean read
ServiceName
Gets or sets name of the service.
property ServiceName: string read write
ActivateInstance protected virtual
Activates specified instance of a service if this instance supports IROObjectActivation.
procedure ActivateInstance(const anInstance: IInterface)
Parameters:
- anInstance: Reference to an instance of a service.
DeactivateInstance protected virtual
Activates specified instance of a service if this instance supports IROObjectActivation.
procedure DeactivateInstance(const anInstance: IInterface)
Parameters:
- anInstance: Reference to an instance of a service.
ReleaseInstance
Releases previously created instance of a service.
procedure ReleaseInstance
- TRORemoteService