Used to organize Dependency Injection
Go to file
2021-08-11 16:05:11 -04:00
PoweredSoft.Module.Abstractions Add project files. 2021-08-11 15:23:58 -04:00
.gitattributes Add .gitignore and .gitattributes. 2021-08-11 15:23:56 -04:00
.gitignore Add .gitignore and .gitattributes. 2021-08-11 15:23:56 -04:00
azure-pipeline.yaml pipeline. 2021-08-11 16:05:11 -04:00
Module.sln pipeline. 2021-08-11 16:05:11 -04:00
README.md docs. 2021-08-11 15:27:39 -04:00

Reasoning

Just makes it easier to organize modules with a class instead of a static extension method.

services
	.AddModule<SomeModule>()
	.AddModule<SomeOtherModule>();
public class MyModule : IModule 
{
	public IServiceCollection ConfigureServices(IServiceCollection services) 
	{
		services.AddOtherDependantModule();
		return services;
	}
}