Real world examples of most popular design patterns implemented in .NET Core Web API
- Factory - Create factories with different discount calculation logic
- Abstract factory - Embedded croissant maker logic
- Builder - SQL query creator for different SQL server providers
- Prototype - Simple implementation of object shadow copy
- Singleton - Thread safe file logger service
- Adapter - Adapting various electronic components into one interface
- Bridge - Postgres and mongo database via one interface
- Composite - TODO
- Decorator - TODO
- Facade - TODO
- Flyweight - TODO
- Proxy - TODO
- Chain of responsibility - TODO
- Command - TODO
- Iterator - TODO
- Mediator - TODO
- Memento - TODO
- Observer - TODO
- State - TODO
- Strategy - TODO
- Template method - TODO
- Visitor - TODO
Check my blog at hasto.pl