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?