Category: .NET
-
RSCG – RSCG_CompositeProvider
RSCG – RSCG_CompositeProvider name RSCG_CompositeProvider nuget https://www.nuget.org/packages/RSCG_CompositeProvider/ https://www.nuget.org/packages/RSCG_CompositeProvider_common/ link https://github.com/ignatandrei/RSCG_CompositeProvider author Ignat Andrei Generate composite class from interface,using multiple sources This is how you can use RSCG_CompositeProvider . The code that you start with is The code that you will use is The code that is generated is Code and pdf…
-
RSCG – DependencyModules.SourceGenerator
RSCG – DependencyModules.SourceGenerator name DependencyModules.SourceGenerator nuget https://www.nuget.org/packages/DependencyModules.SourceGenerator/ https://www.nuget.org/packages/DependencyModules.Runtime/ link https://github.com/ipjohnson/DependencyModules author Ian Johnson Generating service dependencies from attributes. Also,by the author,a more advanced example you will find in the DemoWithTest.zip inside the zip file This is how you can use DependencyModules.SourceGenerator . The code that you start with is The code that…
-
RSCG – MockMe
RSCG – MockMe name MockMe nuget https://www.nuget.org/packages/MockMe/ link https://github.com/connorivy/MockMe/ author connorivy Creating mocks for testing classes This is how you can use MockMe . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/MockMe
-
Pattern: CompositeProvider
Description Composite Provider pattern is a structural design pattern that lets you compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly. Example in .NET : CompositeProvider And his usage Learn More Source Code for Microsoft implementation of CompositeProvider SourceCode Composite Provider Learn More File…
-
What I have learned by building .NET Stars -part 4- Keyed Dependency Injection – constructor by keys
As I said before,I have constructed first the interfaces. Then I have a null object pattern for each interface,constructed automatically with a Roslyn Code Generator,https://www.nuget.org/packages/rscg_Interface_to_null_object . And now,what I want is to have keyed DI for each new implementation -with a twist: It’s like a game of matching keys when another class is injected,the first…
-
What I have learned by building .NET Stars -part 3- Aspire
I have that same idea to build a project : is what is called today a Modular Monolith – and it is very old in .NET world as can be implemented as a .sln solution. For those unfamiliar,a Modular Monolith allows you to break down your application into independent modules (think database access,data flow logic,a…
-
What I have learned by building .NET Stars -part 2- interfaces
In my latest project,building a robust system using interfaces has been both a fascinating challenge and an enlightening experience. As I embarked on this journey,it quickly became evident how immensely powerful and transformative thinking in terms of interfaces can be. From the outset,interfacing brought clarity to several core aspects of the application: Data Management: Interfaces…
-
Dotnet Stars–part 1
The .NET Stats project wants to show the stars for .NET github projects. The projects are taken from .NET Foundation,https://dotnetfoundation.org/, Vitali Fokin https://github.com/quozd/awesome-dotnet/ and Thang Chung https://github.com/thangchung/awesome-dotnet-core There are more than 1000 repositories investigated. Here are the first 30 projects with most stars : “ASP.NET Core” https://github.com/aspnet/home number stars 35690 “ASP.NET MVC” https://github.com/dotnet/aspnetcore number stars…
-
RSCG – NTypewriter
RSCG – NTypewriter name NTypewriter nuget https://www.nuget.org/packages/NTypewriter.SourceGenerator link https://github.com/NeVeSpl/NTypewriter author NeVeSpl Generating code with a template from classes in project This is how you can use NTypewriter . The code that you start with is The code that you will use is The code that is generated is Code and pdf…
-
RSCG – rscg_Interface_to_null_object
RSCG – rscg_Interface_to_null_object name rscg_Interface_to_null_object nuget https://www.nuget.org/packages/rscg_Interface_to_null_object/ https://www.nuget.org/packages/rscg_Interface_to_null_object_common link https://github.com/ignatandrei/rscg_Interface_to_null_object/ author Andrei Ignat Generate null objects for interfaces This is how you can use rscg_Interface_to_null_object . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg_Interface_to_null_object