Skip to content

Ruffythemonkey/Ruffys.HostingExtensions

Repository files navigation

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)

About

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<TInterface>

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages