Blazor is a Single Page Application development framework. The name Blazor is a combination/mutation of the words Browser and Razor (the .NET HTML view generating engine). Read more at What is Blazor? – Blazor University (blazor-university.com) and ASP.NET Core Blazor | Microsoft Docs. Get started at What is Blazor [1 of 11] | Microsoft Docs….
Category: .NET
Adventures with Azure APIM: C# In My Policy
I was asked by a customer recently on how to call a third-party API that required an MD5 hash to be included as a query string parameter from Azure API Management. I knew the answer was in policies but was not exactly sure how to do it. I also seemed to remember the Marvel API…
Adventures with Azure: Downloading and Uploading Files with .NET Core
From time to time I have to add file upload and download support for my applications. It seems like I have done this a bajillion and one times in the past but can never seem to remember where this code lives! My thought? Want not capture them all in an article on my blog? Not…
Adventures with App Insights: Tracking Custom Events in .NET Core Function Application
WARNING: According to this article, https://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection#logging-services, is NOT A RECOMMENDED PRACTICE. While what I have done works, according to the article, adding AddApplicationInsightsTelemetry() to the services collection “registers services that conflict with services provided by the environment.” In a previous article, we looked at how to track custom events in Azure Application Insights from a .NET Core Web…
Adventures with App Insights: Tracking Custom Events in an ASP.NET Core Web Application
I wanted to see how to track custom events in Azure Application Insights with an ASP.NET Core Web Application. A lot of what I wanted to do was found in the article, Application Insights for ASP.NET Core applications, I wanted to streamlined things a bit, specific to my use case. Let’s get started! In Azure,…
Adventures with Azure Storage: Read/Write Files to Blob Storage from a .NET Core Web API
I wanted to share some code I wrote recently for uploading a file to a .NET Core Web API and writing it to Blob Storage, as well as, downloading the file from the .NET Core Web API. As a bonus, we will use SAS tokens to read and write to Blob Storage. Let’s get started….
Adventures with Visual Studio: Properties Should Not Return Arrays
Early this morning, I installed the latest update of the Roslyn Code Analyzers in Visual Studio 2019 and was immediately welcomed with this warning: Properties should not return arrays. Something you need to know about me. I have this weird obsession of needing to remove all the “squigglies” that Visual Studio barks about from my…
Adventures with Azure: Sample CRUD .NET Core API and Azure Functions
I created a sample CRUD demonstrating API functionality using a .NET Core Web API and Azure Functions. Each project contains RESTful API endpoints for adding, updating, fetching and deleting a record from a database. There are currently two flavors: Cosmos DB 3.0 SDK at https://github.com/mattruma/Heroes Entity Framework Core at https://github.com/mattruma/Heroes/tree/EntityFrameworkCore In the future, I will…
NET Core Web Api and Cosmos DB SDK 2.0 and 3.0
I created an example of a NET Core Web Api that makes use of both the Cosmos DB SDK 2.0 and 3.0. The example is based on an Order entity with multiple Order Item entities. It includes controller methods for working with Orders in both v1 and v2 of the API. Note, in v2 of the…
Azure AD B2C ASP.NET Core Web App and Web Api … Finally!
I have been determined to get an example of a Web App and Web Api working together with Azure AD B2C. Much of the example is based on https://github.com/Azure-Samples/active-directory-b2c-dotnetcore-webapp. While this is an excellent example, I wanted and example with a separate Web App and Web Api. The code can be found at https://github.com/mattruma/ADB2CWebAppWebApi. I will highlight…