Skip to content

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>

License

Notifications You must be signed in to change notification settings

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

No packages published

Languages