net_automatic_interface
stronginject
net_automatic_interface | stronginject | |
---|---|---|
1 | 7 | |
49 | 836 | |
- | - | |
7.8 | 0.0 | |
3 days ago | almost 2 years ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
net_automatic_interface
-
Creating interfaces from a class automatically
I dislike that modern Asp.Net forces me to create new interfaces for every service I want to register - it helps with testing and modularity, but it's annoying because each change to the service has also propagated to the interface - creating lots of manual work. I finally managed to scratch my itch and write a Source Generator which creates an Interface from a Class definition ,without the need for any manual work: codecentric/net_automatic_interface: .Net Core Source Generator for Automatic Interfaces (github.com)
stronginject
- Reflection -> Source Generated
- What is the most cursed data structure you can think of?
- Injectio - Source Generator for Dependency Injection
-
You probably don't need MediatR
I think StrongInject does exactly that. I have never used it yet though.
-
stronginject VS Pure.DI - a user suggested alternative
2 projects | 12 Oct 2021
-
Is the era of reflection-heavy C# libraries at an end?
Actually DI is perfectly possible without reflection, see https://github.com/YairHalberstadt/stronginject
What are some alternatives?
GodotOnReady - A C# Source Generator that adds convenient onready-like features to your C# scripts in Godot Mono (3.x) without any reflection.
jab - C# Source Generator based dependency injection container implementation.
ResXFileCodeGenerator - VocaDb.ResXFileCodeGenerator is a C# source generator to generate strongly-typed resource classes for looking up localized strings.
Pure.DI - Pure DI for .NET without frameworks!
csharp-source-generators - A list of C# Source Generators (not necessarily awesome) and associated resources: articles, talks, demos.
Jot - Jot is a library for persisting and applying .NET application state.
ReactiveUI - An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
ArchiSteamFarm - C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
ZeroQL - C# GraphQL client with Linq-like syntax
SqlMarshal - Generates data access using stored procedures
dunet - C# discriminated union source generator