In all my time working with .NET, I’ve never played with the SignalR or ASP.NET Core SignalR. That all changed this week when I worked through Getting Started with ASP.NET Core SignalR. The course provides a very basic look into how SignalR can be used to bring real-time functionality to your projects. Clients can connect to the server via transports, typically through [WebSockets][ws], and then communicate through the hub, the name of the connection between the client and the server. The demo app created in the course features an online storefront where users can order coffee and then get real-time status updates as their beverage is prepared. I’m itching to use the course as a launching point to create a basic chatroom. Once the basic chatroom is created it could be improved with React. That could be a fun tutorial series.
On top of the SignalR stuff, I consumed a course covering xUnit. The course is called Testing .NET Core Code with xUnit.net: Getting Started. Up to this point as a .NET developer, I’ve used MSTest. It’s been a solid test runner and testing framework, but the popularity of xUnit makes it a tool worth exploring. For anyone else in the same boat I have good news. The transition from MSTest to xUnit is natural. Both tools are capable testing frameworks that can be used to write robust unit tests for any .NET project. When it comes to unit tests it doesn’t really matter which flavor of tests you’re writing, but that you’re writing tests. The best testing framework is the one that you’ll use.
Pluralsight Course(s): Getting Started with ASP.NET Core SignalR, Testing .NET Core Code with xUnit.net: Getting Started
Pluralsight Course(s): React 16 - The Complete Guide
On the Next…
I’m looking forward to spending time working to create a chatroom app with SignalR and React. I’ve created a GitHub project, NETCorePlayground, where I will be storing projects used to learn and share ideas about .NET Core development. The first project I’m tackling is “ReactChat.” The picture for this week is a quick mockup that I drew. That’s the target. I’m sure it’ll evolve as the project comes together. I’ll get a live version online as soon as I have the basic functionality in place.