Quantcast
Channel: mattfrear – Matt's work blog
Browsing latest articles
Browse All 52 View Live

Image may be NSFW.
Clik here to view.

Blazor WASM configuration in an Azure Static Web app

I had a simple enough requirement, to display the name of the current environment in the title of a Blazor WASM web app. The Blazor code was simple enough: appsettings.json: { "Environment": "local" }...

View Article


C# interpolate a raw JSON string

It’s sometimes handy (e.g, in test suites) to have a JSON string hardcoded. If you want to interpolate it to insert a variable, use $$, like this: var ratingUnitNumber = "test"; var cloudEvent = $$"""...

View Article


Image may be NSFW.
Clik here to view.

Bicep – How to include a forward slash / in an Azure Service Bus Topic name

An architect at my current client insisted that we rename our Azure Service Bus topic from property-changed to property/changed/v1, to align with some naming convention. Unfortunately, Bicep doesn’t...

View Article

Image may be NSFW.
Clik here to view.

Add authentication to an Azure Static Web App’s API

At my current client we are writing a Blazor WASM app which is deployed as a Static Web App. The backend is an Azure Function which is deployed as a “Bring your own” function, however I think this...

View Article

HttpTrigger Azure Functions timeout

Here’s an annoying bug I had today. I have an Azure Function which contains both [ServiceBusTrigger] and [HttpTrigger] functions. My HttpTrigger were timing out while debugging locally, for some...

View Article


Image may be NSFW.
Clik here to view.

A nicer free Blazor WASM Data grid, toast, and confirm

A Blazor WASM .NET 8 proof-of-concept project I recently worked needed a data grid. MudBlazor, at the time, it didn’t support .NET 8 WASM. (It might now, I’m not sure). Blazorise – looks good, but I...

View Article

Image may be NSFW.
Clik here to view.

Logging to Application Insights with ILogger in Azure functions on .NET 8

Today I couldn’t figure out why any of my ILogger messages in my Azure Function weren’t appearing in Application Insights. According to my research they should appear as Trace messages....

View Article

Image may be NSFW.
Clik here to view.

“When a Teams webhook request is received” not working from C# HttpClient

I was recently trying to send a message from my application (an Azure Function) to a Teams channel. The current recommended way (by Microsoft) to do this is via a “Teams Workflow”, which is layer over...

View Article


Remove a secret from your local git commit history

I was recently trying to push some code to Azure DevOps, but I was getting an error: $ git push Enumerating objects: 117, done. Counting objects: 100% (107/107), done. Delta compression using up to 12...

View Article


Image may be NSFW.
Clik here to view.

Azure DevOps Advanced Security not detecting vulnerabilities – 0 components...

Today at a client I noticed that when I built a solution in Visual Studio, I would get Warnings about security vulnerabilities in third party NuGet packages: We had previously setup Azure DevOp’s...

View Article
Browsing latest articles
Browse All 52 View Live