DepencyInjectionExtension
1.0.0
Lightweight Library in .NET Standard for Dependency Injection
Nuget: https://www.nuget.org/packages/DependencyInjection.Extensions/
Example:
[TransientDependency(typeof(IService))]
public class Service : IService
{
public Service()
{
}
}Format: [<AttribuleLyfeCycle>(typeof(<InterfaceType>))]
InjectAllServices extension method as show the code snippet bellow:public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
services.InjectAllServices();
}