TGViewer
DotNetRu DotNetRu @dotnetru · 2.32K subscribers
Post #371 766
StrongInject. Compile Time Dependency Injection For C# (https://github.com/YairHalberstadt/stronginject), что скажете друзья? Выглядит вроде вкусно, может помочь решить многие проблемы еще на этапе компиляции. Или привнести новую борьбу с новой библиотекой. 🙃

- Compile time checked dependency injection. If the type you're resolving isn't registered you get an error at compile time, not runtime.
- Fast. There's no dictionary lookups, no runtime code generation. Just the fastest code it's possible to generate to resolve your type.
- Encourage best practices. You can't use the container as a service locator. You can't forget to dispose the resolved types.
- No reflection or runtime code generation. Instead StrongInject uses roslyn Source Generators, meaning it's fast, and works well on UWP/IOS too. This also means it's linker friendly - see https://devblogs.microsoft.com/dotnet/app-trimming-in-net-5/.
- Async support. StrongInject fully supports async initialization and disposal, a feature sorely lacking in many IOC containers.

#dotnet #csharp #stronginject #github #nuget
GitHub GitHub - YairHalberstadt/stronginject: compile time dependency injection for .NET compile time dependency injection for .NET. Contribute to YairHalberstadt/stronginject development by creating an account on GitHub.
More from @dotnetru
  1. Sep 30, 2026Post #774
  2. Sep 23, 2026#видеозаписи До нового DotNext осталось совсем немного, а по дороге на конференцию — можно…
  3. Sep 22, 2026Открываем охоту на кабанчика 🐗 BookClub DotNet возвращается с третьим сезоном и в новом с…
  4. Sep 21, 2026Модель владения, новая производительность, оптимизация памяти Подкаст RadioDotNet выпуск №…
  5. Sep 17, 2026Всем привет! Прямо сейчас идет стрим "Unreal Engine дома, на работе и не только". YouTube:…
  6. Sep 8, 2026А что, если съездить на .NET-митап во Владимир и остаться там на выходные? Вечером пятницы…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →