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 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 equivalent to FacesContext, but in servlet environment? I have some DAOSessionManager
Is there an OS or user-account level modification for windows 7 that I can
SUBSTRING_INDEX() in MySQL returns a substring from a string before the specified number of
How to merge branch back to trunk in SVN with all commit history? I
In both Python and Java we have import to eliminate the repetition of fully-qualified
My question is that if it is possible to overload constructors in scala? So
I'm working on a Visual C++ 8 project on WinXP but unfortunately I have
I'm making a call to the database. The result must be used for a
I want to create a plug-in system using objective-c. I am getting list of
I saw below thing in c++ standard (§9.5/1): A union shall not have base

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.