I have a service and it’s service interface is registred as a singleton with the service decorator attribute.
[Service(ServiceType = typeof(IMySendService), Lifetime = DependencyLifetime.Singleton)]
The service is also implementing the
IStartupTask because there is event handling in the service that needs to be registered at startup.
So far so good…
But the service is also used in a scheduled task and injected with DI to the task. And if I debug and set a breakpoint in the constructor of the service it’s beeing hit twice.
Shouldn’t there only be one instance of my service with that attribute?
Litium version: 7.2.3