Hello and Welcome 🙂 Today I want to look at a few extension methods to help with compressing either string or just byte arrays (which could be files, images, objects, basically, everything can be represented as a byte array). The backstory The need for this came when I was participating in a hackathon (in which … Continue reading Compression and decompression snippets
Branching authentication in Asp.Net Core 2.1
Hello and welcome 🙂 In the last post I hinted at using SignalR and query strings to branch how a user is authenticated. Backstory I ended up in this scenario when one of the requirements for the system was that it needs to be embedded into the client's system, that means that we would have … Continue reading Branching authentication in Asp.Net Core 2.1
SignalR metadata for Asp.Net Core 2.1
Hello and welcome 🙂 This will be a short post which will tie in with the next post about branching authentication in asp.net core using middleware. The problem Recently I encountered a situation in which I needed to pass to a SignalR hub additional data with every request, kinda like environment metadata from external systems. … Continue reading SignalR metadata for Asp.Net Core 2.1
Enhancing Asp.Net Core logging pipeline with Serilog
Enhancing Asp.Net Core logging pipeline with Serilog Hello and welcome :), Today I want to show how we can switch out the default logging pipeline in favor of Serilog which has a lot more providers implemented by the community and also provides a way to log structured data. The backstory For those of you who … Continue reading Enhancing Asp.Net Core logging pipeline with Serilog
Treating code as data: NDepend
Hello and welcome:), A few weeks back a friend of mine recommended a tool and he described it as such Treating code as data, you can query information about your code and keep track of changes. What he said was an understatement. I tried said tool and I found out that it can become invaluable … Continue reading Treating code as data: NDepend
Automation testing dogma and exploration
Hello and welcome :), In a previous post I hinted about today's topic. So in this post, I want to discuss two topics: Automated tests dogma - this is based on my opinions of things we as developers need to loosen our grip on. Exploratory testing - why and where should we introduce randomness and … Continue reading Automation testing dogma and exploration
LinqPAD script of the day: RandomStringGenerator
Hello and welcome :), This is part of a series entitled LinqPAD script of the day in which we will be looking at some scripts I used from time to time to help me with a specific issue or question. Keep in mind that some of these scripts might be silly, useless, geeky but hey, … Continue reading LinqPAD script of the day: RandomStringGenerator
LinqPAD script of the day: WorldClock
Hello and welcome :), This post is the first in a series entitled LinqPAD script of the day in which we will be looking at some scripts I used from time to time to help me with a specific issue or question. Keep in mind that some of these scripts might be silly, useless, geeky … Continue reading LinqPAD script of the day: WorldClock
Testing Entity Framework Core
Hello and welcome, In this post, we are going to have a look at how we can write automated tests using entity framework core. As in the recent previous posts, the code can be found here. The story A while back when working on a project, I wanted to do an integration test with a … Continue reading Testing Entity Framework Core
Background worker in ASP.Net Core
Hello and Welcome :), Today we are going to discuss how we can add functionality to an APS.Net Core application outside of a request. The code for this post can be found here. The story As some, if not all of you know, web servers usually only work in the context of a request. So … Continue reading Background worker in ASP.Net Core