Factory Method Pattern with Generic Factory Service in .Net Core

Amr elshaer
Oct 11, 2021

--

All the code in the above will be the same put add some code and change code in the controller.

Inject IServiceFactory in ConfigureServices in Startup.cs

Replace code in controller

Resources

New keyword is glue

https://ardalis.com/new-is-glue/

--

--

Amr elshaer
Amr elshaer

Written by Amr elshaer

Software engineer | .Net ,C# ,Angular, Javascript

No responses yet