Extended Hosting.ServiceCollection by giving you the option to automatically include all classes that inherit an interface in the Hosting.ServiceCollection. This can then be retrieved from the ServiceCollection using IEnumarable
📦 NuGet: Ruffys.HostingExtensions
App
using Ruffys.HostingExtensions;
services.AddAllTransientImplementations<IMyInterface>();
Class (Primary Constructor)
public class MyClass(IEnumerable<IMyInterface> myservices)