I have implmented a custom profile provider class from the abstract ProfileProvider class. What is the proper way to access the DI container. I have tried this
HttpContext.Current.GetScope().ServiceProvider.GetService(typeof(IXyz))
But I am not sure if this is the correct way. I am currently on version 9.13.0
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.