dotnet-module/README.md
David Lebee 590ea8476e docs.
2021-08-11 15:27:39 -04:00

377 B

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;
	}
}