79591083

Date: 2025-04-24 16:30:28
Score: 1.5
Natty:
Report link

There's a different approach that worked:

IServiceScope currentScope = HttpContext.Current.GetScope();
IServiceProvider serviceProvider = scope.ServiceProvider;

More details here.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Constantine Ketskalo