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 522441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:21:15+00:00 2026-05-13T08:21:15+00:00

This registration works when all the implementations of IService are public: AllTypes .Of<IService>() .FromAssembly(GetType().Assembly)

  • 0

This registration works when all the implementations of IService are public:

AllTypes
    .Of<IService>()
    .FromAssembly(GetType().Assembly)
    .WithService.FirstInterface()

For example:

public interface IService {}
public interface ISomeService : IService {}
public class SomeService : ISomeService {}

Resolving ISomeService returns an instance of SomeService.

But if the SomeService class is internal, the container throws an exception that states that ISomeService is not registered.

So is there any way to register internal implementations for public interfaces?

  • 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-13T08:21:16+00:00Added an answer on May 13, 2026 at 8:21 am

    UPDATE2:
    While I consider this not a good idea, you can achieve that with the following code.

    AllTypes.FromAssembly(GetType().Assembly)
        .IncludeNonPublicTypes()
        .BasedOn<IService>()
        .WithService.FirstInterface();
    

    UPDATE:
    This is a very logical behavior and I would consider this a bug if it was otherwise. AllTypes exposes only public type, because it assumes, if you made your type internal, you did it for a reason.

    When you register type explicitly on the other hand, it works because Windsor assumes, since you’re explicitly asking it to use an internal type, you know better.


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

Sidebar

Related Questions

I'm trying to Implement the facebook registration. It works and i'm getting back all
I just finished my first own example with activities/places and MVP. all works fine
i'm trying to do this: #region COM Registration Methods /// <summary> /// Performs COM
I have a registration form where this CSS rules apply. when user submits with
I have this code for displaying content for login and registration in my PHP
We have a registration system Database and basically what this query does is check
I have a check box in my registration form like this: <form name=reg id=reg
I'm following this tutorial: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ I've managed to utilize the tut to access and
The workflow requested by customer is something like this : The user on registration
I'm using ExtJS on a registration page which should have no effect on this.

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.