Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am just getting started with Umbraco 9.
Has anyone got any example code and documentation to get up and running with dependency injection.
I want to inject my own helpers and services in a similar way to like we did with Umbraco 8 Composers and Components.
I didn't manage to figure it out yet for V9
I found the YouTube videos that Warren did (Part01 and Part02 in the Other section) really useful for doing this for a package. I think it's simpler if you are just doing it for a website, as you can update Startup.cs directly.
You can also see an example in the Our.Umbraco.GraphQL package's composer. Take a look at the first few lines of the Compose method to see it registering some singletons, for example.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted