TIL #3 - Consuming interface implementations as an IEnumerable collection in .NET Core
.NET Dependency Injection enables consuming IEnumerable implementations for flexible dependency scenarios...
.NET Dependency Injection enables consuming IEnumerable implementations for flexible dependency scenarios...
Create a simple solution using LinkedIn and GitHub providers to authenticate users. Out of the box, ASP.NET Core supports multiple external providers but not LinkedIn. The aspnet-contrib (github.com) project has more than 60 external providers, including LinkedIn!...
I recently needed to launch different browsers for debugging a .NET Core app in Visual Studio Code on a MacOS. A quick Google search yielded how to launch different browsers from VS Code for debugging ASP.NET Core, but this was Windows centric. While the changes below are simple, I thought I would document them anyway. Here is the whole launch.json file for reference. The important bits are in the osx sections. { // Use IntelliSense to find out which attributes exist for C# debugging // Use hover for the description of the existing attributes // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md "version": "0.2.0", "configurations": [ { "name"...
Creating the Project Back in October 2016, Shawn Wildermuth published Testing SSL in ASP.NET Core. I came across this post while trying to get HTTPS working with ASP.NET Core on a Mac. Sadly, this post was specific to Windows. However, I want this to work so I can make some progress on Office Addin development using ASP.NET Core. What follows is more of a reminder to myself of how to get this working a Mac again, but let me know if this helps you. Create an ASP.NET Core MVC Project To start, create a new folder and then create a new MVC project. Open a terminal, or use Visual Studio Codes's terminal window, and type the...