James Flower

C# .NET and Web Developer

Tag: .net core

There are 4 posts with the ".net core" tag.

Setup Gitpod for a .NET 6+ Web App

Posted on
2 min read

Gitpod is a service which provides development environments in the cloud, but a .NET web app will need some extra configuration to make it accessible when running from a development workspace. You can use Gitpod by logging in with an account from a source control provider (such as GitHub or GitLab), and then selecting the repository you would like to use from the list of available repositories. After you have selected a repository, a new workspace is created and the files will be cl

Read more...

Supporting Multiple WS-Federation Authentication Schemes in ASP.NET Core

Posted on
5 min read

ASP.NET Core allows you to add support for multiple authentication schemes, such as social auth providers or WS-Federation. This support can be added with or without ASP.NET Identity Core. Users can then use these schemes to authenticate with your web application. While adding support for social authentication providers (such as Twitter and Facebook) is useful, sometimes applications need to support for multiple authentication schemes of the same type. An example of this would be support

Read more...

Logging in .NET Core using ILogger

Posted on
4 min read

Logging is an important part of software development. It helps us know that tasks have been completed, monitor applications and provides a trail to follow when things don’t work. Microsoft has included a logging framework in .NET Core and ASP.NET Core to allow developers to easily implement logging and choose their own logging provider (this is the part which decides how to store your log messages). A good logging solution can be invaluable when an application stops working as expec

Read more...

How to send emails in .NET Core with MimeKit and Mailkit

Posted on
3 min read

The ability for an application to send emails is a very common requirement. This can be for emails such as providing account information, sending marketing emails or even a password reset email. This post will cover how to send an email using MimeKit and MailKit from an ASP.NET Core MVC web application. I will use MailSlurper as a local SMTP server to test the sending of the emails. You can use any SMTP server you prefer though. Creating the ASP.NET Core MVC demo project

Read more...