Picture of Steve Collins
    Pronouns: He/Him
    Talk Length: 15 mins

Func<Y> .NET Dependency Injection

In this 15 minute lightning talk I will show that the Dependency Injection container that comes out of the box with .NET Core / .NET 5 is not just about interfaces and classes – you can also register function delegates instead of single method interfaces.

Using this approach will help avoid untestable DateTime.Now problems and add the ability to create keyed lookup registrations available in other DI containers.

About Steve

Freelance software developer

Steve Collins is an independent software developer/architect with over 25 years’ experience in the industry working with Microsoft technologies.

Steve blogs at https://SteveTalksCode.co.uk and tweets@SteveTalksCode

Steve has given talks about configuration at events and user groups around the UK and has also discussed configuration as a guest on the Dot Net Core Show podcasthttps://dotnetcore.show/episode-49-configuration-in-net-core-with-steve-collins/and the Documentation Not Included podcasthttps://www.youtube.com/watch?v=kXoprCDHBZM


  • Twitter
  • Website