.NET Core DI, register a default implementation for a package
问题 How can one register a default implementation using the IoC container for .NET Core and also provide a way to override the existing implementation ? For example, I might want to create a package which provide a default implementation for some service. namesapce Package { public interface ISomeService { } public class Default : ISomeService { } } This service is then used inside the same package. namesapce Package { public class Service { Service(ISomeService service) { } } } How to register