I posted an image of the code I am trying to convert. To put some context behind it, its in configure services and its purpose is to create seed users. Seems a lot like services.addScoped.