Upgrade error with a IDataListSource with injected service
Hi,
I just updated to 8.10 and I have a IDataListSource that takes in my own IService
This IService is registered using a IUserComposer. Which is only run when Umbraco reaches RuntimeLevel.Run state. However Contentment builds itself up from RuntimeLevel.Boot.
I used the Lazy<IService> to work around this issue.
To clarify, this was something that worked prior to upgrading to Umb v8.10?
With the RuntimeLevel, I've pretty much been sticking with what I've needed personally, so if there's a better stage to run the composer code, then I'm open to suggestions.
Upgrade error with a IDataListSource with injected service
Hi,
I just updated to 8.10 and I have a IDataListSource that takes in my own IService
This IService is registered using a IUserComposer. Which is only run when Umbraco reaches
RuntimeLevel.Run
state. However Contentment builds itself up fromRuntimeLevel.Boot
.I used the
Lazy<IService>
to work around this issue.Thanks
Matt
Hi Matt, thanks for raising this.
To clarify, this was something that worked prior to upgrading to Umb v8.10?
With the
RuntimeLevel
, I've pretty much been sticking with what I've needed personally, so if there's a better stage to run the composer code, then I'm open to suggestions.There's a bit of background with using
RuntimeLevel.Boot
... https://github.com/leekelleher/umbraco-contentment/issues/27Cheers,
- Lee
Hi,
It was working fine before the update and works fine after the update if I remove Lazy it's only during the upgrade process.
One of those lovely edge cases :)
Thanks
Matt
is working on a reply...