ASP.NET Core

Debug Azure Functions webhook callbacks with Dev Tunnels

Using Dev Tunnels to test your Azure Functions webhook callbacks is a breeze. If your systems contain any third-party integrations with services like SendGrid or Stripe, then you will likely want to receive webhook callbacks so you can be informed about what’s happening with your requests. The Azure Functions HTTP trigger is absolutely perfect for […]

Debug Azure Functions webhook callbacks with Dev Tunnels Read More »

, , , ,

Add DataAnnotations metadata to EF Core in a partial class

If you’re old like me, and can remember back to the old days of LINQ to SQL and early Entity Framework with .NET Framework, then you’ll likely remember using a Metadata class along with the MetadataType attribute on a partial class to add DataAnnotations to your models. This allowed you to use your entities as

Add DataAnnotations metadata to EF Core in a partial class Read More »

, , , , ,

Configure Serilog for Logging in Azure Functions

Even though the built-in logging in .NET Core is pretty good these days, Serilog takes it to the next level, making complex logging exceptionally easy. Serilog allows us to not only log the output of the functions to the Console but also write to a Log file, Application Insights, Raygun, Sentry, or any number of

Configure Serilog for Logging in Azure Functions Read More »

, , , ,

Practical tips on how I achieved 45% Savings on my Microsoft Azure billing

About 18 months ago, I took over a product that was fully run on Azure. The solution costs had ballooned from $2000/month at its inception, to almost $5000/month after being on Azure for about 2.5 years. In this article, I’ll talk through how I did a deep dive into each component of the solution to

Practical tips on how I achieved 45% Savings on my Microsoft Azure billing Read More »

, , , , , , ,

Error sending email via SendGrid from Azure Functions

If you’re seeing an error sending email via SendGrid from Azure Functions v4 Isolated model saying “System.Private.CoreLib: Exception while executing function: Functions.SendEmail. Microsoft.Azure.WebJobs.Extensions.SendGrid: A ‘To’ address must be specified for the message.” then you have a JSON serialization problem! The standard JSON in the newer Azure functions projects is System.Text.Json, which is serialising the returned

Error sending email via SendGrid from Azure Functions Read More »

, , , ,

Should you use caching for speed?

I imagine most people who get asked that question would answer “Of course!” but I disagree in a way. I’ve seen countless videos and articles talking about adding caching to your ASP.NET website or API in order to “speed it up”. Speeding up your responses is a good thing, but if you’re using caching as

Should you use caching for speed? Read More »

, , , , ,

Using Redis Caching in your ASP.NET Core web app

Join the mailing list to stay up to date with published articles Video Summary Welcome back! In our previous videos, we covered the installation of Ubuntu on Windows 11 and explored how to install Redis Server on that Ubuntu instance. Today, we’ll delve into a quick Blazor application that demonstrates how to read and write

Using Redis Caching in your ASP.NET Core web app Read More »

, , ,

Handling new user registration with Auth0 and ASP.NET Core 3

When creating a new site that will have users logging into it, you’ll invariably have to choose an identity provider to use. You can use the the inbuilt ASP.NET Core Identity but that has it limitation with repect to authenticating to API’s and other SSO benefits. If you choose a third party identity provider like

Handling new user registration with Auth0 and ASP.NET Core 3 Read More »

, , , , , ,

Lower case URLs in ASP.NET Core

Every time I start a new ASP.NET project, I forget the function required to ensure that all links generated out of ASP.NET are lowercase. So this post is as much a reminder for me, than information for anyone else. Personally think all lowercase URLs look better rather than the usual mismatch of cases that a

Lower case URLs in ASP.NET Core Read More »

, , , , ,

Implementing ASP.NET Core session with Redis Cache on Azure

Using Redis cache in Windows Azure to save session state for an ASP.NET Core web app is quick and easy to configure. Create your Redis Cache in Azure Firstly, if you don’t have an Azure account create a Free Azure Trial Account. Once you’re logged into your Azure account, Click the + Create a resource

Implementing ASP.NET Core session with Redis Cache on Azure Read More »

, , , ,
Scroll to Top