Without this change if I try to use a scoped dependency in my API implementation class, I get:
Cannot consume scoped service 'OrdersApi.v3.Submerchant.Client.ISubmerchantOrdersApiClient' from singleton 'Faithlife.SubmerchantsBff.v1.Client.ISubmerchantsBff'.
If I try to change my API to also be scoped, my handler needs to also be scoped, at which point I get
Without this change if I try to use a scoped dependency in my API implementation class, I get:
If I try to change my API to also be scoped, my handler needs to also be scoped, at which point I get
which led me to this StackOverflow article: https://stackoverflow.com/questions/48590579/cannot-resolve-scoped-service-from-root-provider-net-core-2
I would assume this change should be backwards compatible but I'm still pretty new to ASP.NET Core DI.
I verified this change fixes my problem by copying the DLL from my local FacilityAspNet to my API's bin folder.