How to implement SignalR in a .NET + Angular application: updated for .NET 6 and Angular 14!

My original blog post detailing the implementation of SignalR in a .NET and Angular app has become a somewhat popular search engine result for "signalr + angular", getting about 500 views per month. While that's not a extremely large amount of traffic, this is a bit of a niche topic. The steady traffic over two … Continue reading How to implement SignalR in a .NET + Angular application: updated for .NET 6 and Angular 14!

The Microsoft Edge Dev Tools extension for VS Code is so awesome that I’m ditching Chrome for web development

I've been using Visual Studio Code enjoyably for several years, but the Microsoft Edge Tools for VS Code extension has brought web development tooling to another level. This extension was game-changing enough for me that I made Edge my daily driver browser for web development work, replacing Chrome. Early versions of VS Code did not … Continue reading The Microsoft Edge Dev Tools extension for VS Code is so awesome that I’m ditching Chrome for web development

Angular + ArcGIS API for JavaScript: A unit testing strategy using dependency injection and the facade pattern

Visit this repository for a complete working example of the code referenced in this post:https://github.com/mfcallahan/angular-cli-esri-map-unit-testing The working application is deployed here:https://mfcallahan.github.io/angular-cli-esri-map-unit-testing If you have used the ArcGIS API for JavaScript, you may recall that it is built on top of the Dojo Toolkit, using their Asynchronous Module Definition (AMD) format to load the various modules … Continue reading Angular + ArcGIS API for JavaScript: A unit testing strategy using dependency injection and the facade pattern

How to publish an ASP.NET web application to an Azure App Service from JetBrains Rider

I prefer to deploy my personal .NET projects to Azure, and frequently use App Services to host APIs and web applications. Microsoft Visual Studio has excellent integrated tools for publishing your apps to Azure, but after recently making the switch from Visual Studio 2019 to JetBrains Rider, I was pleased to see that Rider supports … Continue reading How to publish an ASP.NET web application to an Azure App Service from JetBrains Rider

How to implement SignalR in a .NET 6 + Angular 14 web application

Update - September 29, 2022 This post continues to be a somewhat popular search engine result, getting about 500 hits per month, so I have again updated the sample application code to the latest versions of the .NET and Angular frameworks (ver. 6 and ver. 14, respectively). Previous iterations of this tutorial used .NET 5 … Continue reading How to implement SignalR in a .NET 6 + Angular 14 web application

Making a POST request to an oAuth2 secured API using RestSharp

Recently, a coworker asked me how to best consume (using C#) an oAuth2 secured API which I had deployed.  I have been using RestSharp (along with JSON.NET) to make web requests in some of my applications recently, so I wrote a quick sample application for him demonstrating how to communicate with my API using those libraries. … Continue reading Making a POST request to an oAuth2 secured API using RestSharp

Linking to another page using target=”_blank” can hinder performance and pose a security risk

I recently learned that using target="_blank" to have links open in a new tab causes the new page to run on the same process as your page. If the new link is executing large chunks of JavaScript, your page's performance may also suffer.  But in addition to a potential performance hit, using  target="_blank" is also a security vulnerability. … Continue reading Linking to another page using target=”_blank” can hinder performance and pose a security risk