The current ASP.NET dependency injection documents describe a method AddScopedthat I also see as a member IServiceCollectionin Visual Studio autocompletion when working on an ASP.NET project.
However, there are many links on the Internet (including the MSDN blog) to a method AddScopethat does not appear to be mentioned in official docs and does not appear to me in Visual Studio. Examples: 1 , 2 , 3 . In fact, a Google search for asp.net "addscope"is about the same amount of results as asp.net "addscoped"; these two names are used approximately equally often.
It would seem improbable if all these links were just typos - surely this method name will not be sealed almost 50% of the time sequentially throughout the Internet? But this is even more confusing that I cannot find a link to AddScopein any official documentation. Was it a method that used to exist, or an old alias for AddScoped, or was something else happening here? What exactly is or was it AddScope?
source
share