I use .Net MVC 4 with WebApi and in all the articles that explain how to use the DI container, which has the following configuration line in Global.asax: ( http://blog.ploeh.dk/2012/03/20/RobustDIWithTheASPNETWebAPI .aspx )
GlobalConfiguration.Configuration.ServiceResolver.SetResolver(...)
But in my non ServiceResolver application, enter:
ServiceResolver
with intellisense:
What am I doing wrong?
It has been renamed DependencyResolver to RC:
DependencyResolver
GlobalConfiguration.Configuration.DependencyResolver = ... your custom DR
Source: https://habr.com/ru/post/921547/More articles:Comparing two lists in Python - variablesRails 3.2 asset_host parameter is invalid - ruby-on-railsWhy is the matrix created by Android frustumM different from the Redbook matrix? - androidHow to transfer an overloaded function to an operator? - c ++What codes, such as CC, LD, and CC [M] are output when compiling the Linux kernel? - linuxhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/921548/in-kernel-makefile-call-cmd-tags-what-is-the-cmd-here-refers-to&usg=ALkJrhhp6PLIA6-1L2HaSoI7sdOWXYgSogSphinx integration in MySQL - mysqlWhat are the possible OpCodes for the latest method statement? - c #What is the value of the variable defined on the same line of the rule as the prerequisites, such as "a: x = 0" in GNU Make? - makefileHow to show searchResultsTableView when search bar is activated? - iosAll Articles