TIL: You can inject services into methods instead of the whole controller

This page summarizes the projects mentioned and recommended in the original post on /r/dotnet

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ASP.NET Core

    ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.

  • Specifically, the FromServicesAttribute documentation page is generated from this file. That XML file itself is generated from the original source (including code example).

  • AspNetApiDocs

    Reference documentation for ASP.NET Core APIs

  • All the ASP.NET API docs are generated in this repository.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • vscode-extension-samples

    Sample code illustrating the VS Code extension API.

  • This was my first thought. I occasionally run into really really good sample code that is quite hard to discover (e.g. https://github.com/microsoft/vscode-extension-samples). Not necessarily because I don't know the sample exists, but because I *don't know the feature is used in that sample*.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts