Application triggers for Asp.Net Core 2.1 entity framework core

Hello and welcome 🙂 Today I wanted to talk about extending your application and your DbContext to run arbitrary code when a save occurs. The backstory While working with quite a few applications that work with databases especially using entity framework, I noticed the pattern of saving changes to the database and then do something … Continue reading Application triggers for Asp.Net Core 2.1 entity framework core

Compression and decompression snippets

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