Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Confused on Service Start Calls and Defaults

$
0
0

In the latest .net Core (1.0.0-preview2-003131), I'm confused about the services that get started and also what their defaults might be.

In specific, I notice that on a new core web project, AddMvc() is called but Add AddMemoryCache() is not (both seem to be available to the app).  Going one step further, it seems that in the help doc: https://docs.microsoft.com/en-us/aspnet/core/performance/caching/memory its shows AddMemoryCache.

Does AddMemoryCache() somehow get loaded someplace else? if not, why does cache seem to work if the service is not added?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>