https://github.com/godrose/solid
.NET apps done SOLID way
https://github.com/godrose/solid
architecture composition dotnet dotnet-core dotnet-standard ioc-container modularity solid
Last synced: 2 months ago
JSON representation
.NET apps done SOLID way
- Host: GitHub
- URL: https://github.com/godrose/solid
- Owner: godrose
- License: apache-2.0
- Created: 2015-02-14T11:34:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T12:24:17.000Z (over 2 years ago)
- Last Synced: 2024-11-01T05:02:36.654Z (8 months ago)
- Topics: architecture, composition, dotnet, dotnet-core, dotnet-standard, ioc-container, modularity, solid
- Language: C#
- Homepage: https://godrose.gitbook.io/solid-net-framework/
- Size: 2.08 MB
- Stars: 19
- Watchers: 4
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Solid
The **Solid** library addresses different aspects in applications development.
The most prominent are: **Inversion-Of-Control**, **Modularity**, **Extensibility** via **Middleware** and **Composition**.The **Inversion-Of-Control** aspect is addressed by defining an abstraction of an IoC container which can be implemented using any existing or even new container. It's important to stress that the **user is not limited to this abstract API**. The abstraction is created to support different bootstrapping and modular functionality. In modern versions of .NET this functionality is modeled by `Microsoft.Extensions.DependencyInjection.IServiceCollection` interface and
thus should be preferred over the existing `Solid.Practices.IoC.IDependencyRegistrator` one.The **Modularity** aspect addresses the cases where there's need to add functionality during app initialization without having to include it into the initialization root thus preserving the encapsulation. There are various sorts of functionality that can be added using this approach: registering dependencies into the IoC container, initializing third-party engines, etc.
The **Extensibility** aspect is addressed by defining an abstraction for reusable piece of functionality that is attached to a certain object.This abstraction is represented by the following interface ```IMiddleware``` which defines the ```Apply``` method in a fluent fashion.
The **Composition** aspect is the only one that has concrete implementation. Essentially, it provides a unified way of composing application blocks, including assemblies and composition modules, for further consumption.
Additionally, the **Solid** library contains various interfaces and implementation for some of the Design Patterns, including ```IAcceptor``` for the **Visitor** pattern, ```IMemento``` for the **Memento** pattern and so on. This saves a lot of duplicate code when such a pattern is used during app development.
# Build status
# Artifacts status
| Name | # of Downloads | Living Doc | Download link |
| ---- | -------------- | ---------- | ------------- |
| Inversion of Control || [Living Documentation](https://ci.appveyor.com/api/projects/godrose/Solid/artifacts/output/Solid.IoC.Registration.Specs.LivingDoc.html) | [Get package](https://www.nuget.org/packages/Solid.Practices.IoC/) |
| Middleware || [Living Documentation](https://ci.appveyor.com/api/projects/godrose/Solid/artifacts/output/Solid.Practices.Middleware.Specs.LivingDoc.html) | [Get package](https://www.nuget.org/packages/Solid.Practices.Middleware/) |
| Extensibility || [Living Documentation](https://ci.appveyor.com/api/projects/godrose/Solid/artifacts/output/Solid.Extensibility.Specs.LivingDoc.html) | [Get package](https://www.nuget.org/packages/Solid.Extensibility/) |
| Composition || [Living Documentation](https://ci.appveyor.com/api/projects/godrose/Solid/artifacts/output/Solid.Practices.Composition.Specs.LivingDoc.html) | [Get package](https://www.nuget.org/packages/Solid.Practices.Composition.Core/) |
| Bootstrapping || [Living Documentation](https://ci.appveyor.com/api/projects/godrose/Solid/artifacts/output/Solid.Bootstrapping.Specs.LivingDoc.html) | [Get package](https://www.nuget.org/packages/Solid.Bootstrapping/) |