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

  • Home
  • SEARCH
  • 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 679933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:18:53+00:00 2026-05-14T01:18:53+00:00

Is there any equivalent to the Registry class from StructureMap in Unity? I like

  • 0

Is there any equivalent to the Registry class from StructureMap in Unity?

I like to think about a layer/component/library to configure it self – thus populating the container. So the “parent” layer will just need to know about the Registration class.

  • 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-14T01:18:54+00:00Added an answer on May 14, 2026 at 1:18 am

    No, there isn’t. In our current project we have manually mimic’d the concept of a Registry although our implementation isn’t nearly as powerful as a StructureMap Registry.

    If all you are wanting is modularized container configuration, what you could do is create a marker interface (maybe IRegistry) and then have your application scan for IRegistry classes. With Unity, you can resolve classes that haven’t been registered into Unity yet, so you could simply resolve each IRegistry implementation as you find it. The registry classes could take the container as a constructor parameter and then each class could configure the container as needed for that layer/component/library.

    public interface IRegistry 
    { 
        void Configure();
    }
    
    public class ServicesRegistry : IRegistry
    {
        public ServicesRegistry(IUnityContainer container)
        {
            _container = container;
        }
    
        public sub Configure()
        {
            // Configure container for layer
        }
    }
    

    Now in your app startup somewhere you could have an application bootstrapper that either knows about all your registries or knows how to scan for them.

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

Sidebar

Related Questions

Is there any Ruby equivalent for Python's builtin zip function? If not, what is
Are there any nvl() equivalent functions in SQL? Or something close enough to be
I know semilogx and semilogy for 2D plots. There is any equivalent for SURF
Is there any function in c# equivalent to C's stdio function ungetc() ?
Is there any free or commercial component written in .NET (no COM interop) that
Is there any way to capture the MouseDown even from the .NET 2.0 TextBox
Is there any equivalent to this when a combo is data bound? I've been
Is there any equivalent for SAX (Java) in .Net? I am aware of XmlReader,
is there any equivalent to FacesContext, but in servlet environment? I have some DAOSessionManager
Is there any equivalent to MySQL's SHOW CREATE TABLE <tablename> in informix? I would

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.