docs.
This commit is contained in:
parent
f5447ca448
commit
590ea8476e
@ -5,6 +5,11 @@ VisualStudioVersion = 16.0.30907.101
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PoweredSoft.Module.Abstractions", "PoweredSoft.Module.Abstractions\PoweredSoft.Module.Abstractions.csproj", "{B88DB8C9-EDAA-4B52-951C-5FA4BBEE18BF}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{434E67F5-A188-4D41-83F8-F2131A4395E1}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Reasoning
|
||||
|
||||
Just makes it easier to organize modules with a class instead of a static extension method.
|
||||
|
||||
|
||||
```csharp
|
||||
services
|
||||
.AddModule<SomeModule>()
|
||||
.AddModule<SomeOtherModule>();
|
||||
```
|
||||
|
||||
```csharp
|
||||
public class MyModule : IModule
|
||||
{
|
||||
public IServiceCollection ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddOtherDependantModule();
|
||||
return services;
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user