Giter Club home page Giter Club logo

design-patterns-with-.net's Introduction

.NET-Design-Patterns

In the repository you will find some popular design patterns implemented with .NET technologies. The goal is to illustrate with simple examples how we can use these patterns.

Abstract Factory

The abstract factory pattern is a design pattern that provides a way to create families of related objects without imposing their concrete classes, by encapsulating a group of individual factories that have a common theme without specifying their concrete classes.[1] According to this pattern, a client software component creates a concrete implementation of the abstract factory and then uses the generic interface of the factory to create the concrete objects that are part of the family.

The example is based on ASP.NET Core and it is implemented with .NET 8 so be sure that your configuration supports this version of the platform.

To use it, just send a GET request to some of endpoints and the action will send you a JSON object.

Facade

Facade is a structural design pattern that provides a simplified interface to a library, a framework, or any other complex set of classes.

The example is based on ASP.NET Core and .NET 8.

To use it you can send POST request with image in payload via Postman:

  1. Start Postman
  2. Enter the URL and select POST request
  3. Add "Content-Type" header to request with value "multipart/form-data"
  4. In Body select form-data. For "key" enter "imageFile" and for value select image from your PC
  5. Send request when the app is started

If the request is correct, in the Output panel will be printed messages with the processes of uploading image.

design-patterns-with-.net's People

Contributors

vasildimitroff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.