Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7409985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:09:48+00:00 2026-05-29T06:09:48+00:00

Aside from registered dependencies, are dependencies that are determined through reflection, such as injected

  • 0

Aside from registered dependencies, are dependencies that are determined through reflection, such as injected dependencies, done in regards to the lifetime of the dependency or during the lifetime of the DI Container?

Edit: DI Container in mind is Unity.

Edit: Elaboration: I am curious how many times the reflection process occurs, and also wanted clarity regarding weather or not the stage in the Unity build that uses reflection will find constructors and properties. The fourth stage in the Unity build, according to the MSDN ( Source ), is “Precreation” being the “Fourth stage. Reflection over constructors, properties, etc. is performed here.” How many times is this stage run? Once during the construction of the container, or every time constructor and property dependencies need to be resolved? Which part of the Register Resolve Release pattern does this occur in?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:09:49+00:00Added an answer on May 29, 2026 at 6:09 am

    Unity uses a build pipeline called StrategyChain to create objects. This pipeline is run every time you resolve an object from the container.

    Each step in that pipeline is implemented as a strategy. These strategies lookup values called BuilderPolicies. These policies encapsulate information a strategy has accumulated (like using reflection to determine which constructor to use, which properties to inject etc.). The first time you run the pipeline for a specific type the strategies put policies into a store called PolicyList. The next time the pipeline is asked to build that type those values will be reused so the effort involved should only cost you once.


    UPDATE

    I guess you mean ASP.NET? Actually there are two PolicyLists. One which only lives for one cycle through the StrategyChain (transient) and one which is coupled to the lifetime of the container. It lives as long as your instance of the UnityContainer is not disposed or garbage collected. One thing that might be interesting to you: You can’t serialize your container. Thus you can’t tell an application running on a web farm to store it in a cache and share it between servers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Aside from trying perldoc <module name> individually for any CPAN module that takes my
Aside from DeployerFTP, are there any plugins that offer the ability to deploy a
Aside from the added complexity, do you think that the inclusion of the Generics
Aside from Chrome Developer Tools and Firebug in Firefox, are there other tools that
Aside from the HelloWorld Tutorial, are there any other tutorials/books available with regards to
So my problem is (aside from being a noob) is that while in my
Aside from Microsoft Speech Recogntion, is there any other reliable Speech Recognition engines that
Aside from Episerver.com What other websites do people who develop using EPiServer use as
Aside from executing XP_CmdShell, which I have disabled in my SQL 2005 installation, what
Aside from writing an alias or script, is there a shorter command for getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.