Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matthew Wise 271 posts 1373 karma points MVP 4x c-trib
    Jan 04, 2021 @ 10:36
    Matthew Wise
    0

    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.

    Thanks

    Matt

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jan 04, 2021 @ 10:48
    Lee Kelleher
    0

    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/27

    Cheers,
    - Lee

  • Matthew Wise 271 posts 1373 karma points MVP 4x c-trib
    Jan 04, 2021 @ 10:53
    Matthew Wise
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft