You are not logged in.
Pages: 1
Hi Ab, I am testing your TDDDEmailerDaemon class proposal, it works in a way that I need. There is a way to Inject this Class as a service just like we do with repositories?
Offline
With normal servicedefine?
aserver.ServiceDefine(TDDDEmailerDaemon,[IDomUserEmailer],sicShared);
aserver.Services.Resolve(IDomUserEmailer, adom);
Last edited by fabiovip2019 (2020-08-18 12:08:20)
Offline
If you want to publish it as a remote service.
But if you just need an internal dependency, no need to register as a service.
See e.g. https://tamingthemormot.wordpress.com/2 … ormot-way/
and the related documentation.
Offline
Cool Ab,
can i then use TSQLRestServer.ServiceContainer.InjectResolver to resolve this as an internal service? Would you like to call this implementation just by solving its interface, because its construction is complicated, or is it better to solve it with a dedicated constructor? It would be an internal service, I don't need to expose it as rest.
Last edited by fabiovip2019 (2020-08-20 14:22:46)
Offline
Pages: 1