ASP.NET Core Practice Test
ASP.NET Core Dependency Injection 2
Which method retrieves a required service and throws if it is not registered?
Select your answer
A
GetRequiredService()
B
GetService()
C
Resolve()
D
Fetch()
Hint