Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Many calls to StructureMap to create new instances during web requests

Found in

EPiServer.CMS.Core 7.0.586.0

Fixed in

EPiServer.CMS.Core 9.8.1

(Or a related package)

Created

Apr 05, 2016

Updated

Apr 18, 2016

Area

CMS Core

State

Closed, Fixed and tested


Description

The following APIs are used a lot in web requests. New instances are created every time the API is used:

  • UrlResolver
  • BasePathResolver
  • IPublishedStateAssessor
  • ILanguageBranchRepository

For example, calling Url.ContentUrl when iterating over a large data set in Razor makes this very visible. The implementations should be singletons.