Hi
Using Delphi 12.1 - RODA 10.0.0.1585
I want to create a code-first singleton service.
type
[ROService(SvcEvents, SvcEventsID)]
[RONamespace(PanNamespace)]
[ROSynchronizedSingletonClassFactory]
TServiceEvents = class(TRORemoteDataModule, IServiceEvents)
erEvents: TROInMemoryEventRepository;
procedure erEventsAfterAddSession(Sender: TROEventRepository;
const SessionID: TGUID);
procedure erEventsBeforeAddSession(Sender: TROEventRepository;
const SessionID: TGUID);
private
public
end;
and of course the initialization.
initialization
RegisterCodeFirstService(TServiceEvents);
How do I know when this service is created?
Second, how do I call a method in this service from another service?
Regards,
Filip