8#include "Arp/Base/Rsc/Commons/Rsc.hpp"
9#include "Arp/Base/Rsc/Commons/Services/IRscServiceProxy.hpp"
11namespace Arp::Base::Rsc::Commons::Services
38 RscHandle rscServiceHandle = 0;
39 RscHandle rscServiceProviderHandle = 0;
52 : rscServiceProviderHandle(providerHandle)
53 , rscServiceHandle(serviceHandle)
54 , rscClient(rscClient)
64 return this->rscClient;
72 return ServiceType::GetProxyFactory().GetServiceName();
80 return ServiceType::GetProxyFactory().GetServiceProviderName();
89 return this->rscServiceHandle;
98 return this->rscServiceProviderHandle;
105 this->rscClient.GetServiceHandles(
106 this->GetServiceProviderName(),
107 this->GetServiceName(),
108 this->rscServiceProviderHandle,
109 this->rscServiceHandle);
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
Interface of RSC service proxies used on client side to invoke a service remotely.
Definition: IRscServiceProxy.hpp:20
This class monitors a RSC client call using RAII idiom.
Definition: RscClient.TransactionGuard.hpp:18
Base class for RSC service proxies.
Definition: RscServiceProxyBase.hxx:21
RscHandle GetServiceProviderHandle(void) override
Gets the service provider handle.
Definition: RscServiceProxyBase.hxx:96
void ReadServiceHandles(void) override
Updates the service handle of the remote service instance.
Definition: RscServiceProxyBase.hxx:103
String GetServiceName(void) const override
Gets the service name of this proxy.
Definition: RscServiceProxyBase.hxx:70
RscHandle GetServiceHandle(void) override
Gets the service handle.
Definition: RscServiceProxyBase.hxx:87
RscClient & GetRscClient(void) const
Gets the RscClient to be used for remote or ipc communication.
Definition: RscServiceProxyBase.hxx:62
RscServiceProxyBase(RscHandle providerHandle, RscHandle serviceHandle, RscClient &rscClient)
Constructs a RscServiceProxyBase instance.
Definition: RscServiceProxyBase.hxx:51
String GetServiceProviderName(void) const override
Gets the service provider name of this proxy.
Definition: RscServiceProxyBase.hxx:78
T ServiceType
The service interface type (e.g. IDemoService)
Definition: RscServiceProxyBase.hxx:23