From 590ea8476ea900f2239d787a6d23d9b4b4776f90 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Wed, 11 Aug 2021 15:27:39 -0400 Subject: [PATCH] docs. --- Module.sln | 5 +++++ README.md | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 README.md diff --git a/Module.sln b/Module.sln index 4036ec2..b29c0a3 100644 --- a/Module.sln +++ b/Module.sln @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..2aad9ba --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Reasoning + +Just makes it easier to organize modules with a class instead of a static extension method. + + +```csharp +services + .AddModule() + .AddModule(); +``` + +```csharp +public class MyModule : IModule +{ + public IServiceCollection ConfigureServices(IServiceCollection services) + { + services.AddOtherDependantModule(); + return services; + } +} +``` \ No newline at end of file