How to use SignalR when Receiving a Message from a RabbitMQ Queue in .NET Core

4 months ago

One of the things I faced the challenge of overcoming was using RabbitMQ and SignalR in-conjuction with one another. I am building a ASP.NET Core application and want to consume a RabbitMQ queue when the application starts. When a message is published to that queue, it sends a message to all the clients connected through […]

Using LINQ expressions to build dynamic queries in Entity Framework

5 months ago

Entity Framework is a Object Relational Mapper (ORM) that relates objects and properties in your .NET application with tables and columns in your database. As a result of it’s relationship between application and database, it has become widely used in .NET applications. For the purpose of this article, it is assumed that your database is […]

How the Mediator Design Pattern Simplifies an Application

5 months ago

As your computer application gets more complex, more classes may be added. So, the more classes you add, the more difficult it can be to communicate between these classes. This can be a problem if these classes are located in different assemblies. This is where the mediator design pattern comes in. With the mediator design […]

A Beginners Guide to XUnit

5 months ago

Over the last few weeks, I’ve been exploring the functionality of XUnit. For anyone who doesn’t know, XUnit is one of the unit testing frameworks that are available for .NET. Here are some of the topics I’m going to cover. How to set up a test project In-order to create a test, you need to […]

Migrating from .NET Framework to .NET Core

6 months ago

.NET Core was born back in June 2016, and at time of writing, it’s now on to version 2.2, with a preview of version 3 available for download. But if you are still using .NET Framework for some or all of your projects, then it might not be obvious what’s different with .NET Core, or […]

An Efficient Way of Handling Multiple Actions through One Route

7 months ago

Recently, I wrote about a way that you can use one route to direct traffic to different controllers and actions in ASP.NET Core MVC. In that example, I mentioned that there were six different types of pages that would be handled by one route. This is great, but the problem I experienced was the data […]

Test First, Code Second

7 months ago

In the world where everyone wants something yesterday, it’s very easy not to write any test plans, particularly when you got an eager client on your back. And if you are severely behind schedule, and working all the hours god sends to deliver the work, you are going to have to cut corners and unit […]

Changing controllers and actions using one route in ASP.NET Core

7 months ago

I was presented with a challenge recently. Six different types of pages wanted to appear after a generic sub directory. Well that’s fine. In MVC, you can just set up six different routes to cope with the six different types of pages. Each of those routes can have a different default controller and action. Job […]