How can we improve Microsoft Azure Functions?

Enable dependency injection in C# Functions

It would be useful to have a form of DI in our C# Functions, so we can consistently inject things like our logger class, or other Autofac DI services, into every C# Function we create.

I'd like to create a SDK package which developers can import into their Function and get access to some common functionality via DI, to remove boilerplate redundancy.

Any solution for this kind of thing?

246 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Kirk Marple shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    6 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base