Integrating SignalR into WPF

Now that we have SignalR integrated into our API, I want to start using it from WPF. So to do this we’re going to add a SignalR chat handler. One of the ideas behind this application was to support multiple types of methods for sending chats using the IMessenger interface provided by CommunityToolkit.Mvvm. That way, […]

.

Read more

Adding SignalR into ASP.NET

Okay, so we can call a method on the API of our ASP.NET site to send and receive messages to anybody that want’s to send and listen. Next we’ll cover SignalR as another way to get those messages to the client. I’d recommend starting with reviewing Microsoft’s high-level coverage of SignalR. All we’re going to […]

.

Read more

Adding a background job with a timer to pull from ASP.NET Core Web API

Now that I have an API for my client to pull from I want to extend my chatter chat application to be able to hit it. Portions of this post were inspired by IAmTimCorey’s video on Background Jobs in ASP.NET Core. Other parts derive from the Microsoft documentation on Sytem.Threading.Timer I’m going to start by […]

.

Read more

Using EntityFramework and MinimalAPI in ASP.NET Core Web API

In the previous post I added the EntityFramework nugets to my Web API project and created a Sqlite db using the EntityFramework tools. Here I’m going to add in a Get and Post to my API and interface with the database. First I need to add the database context to my services in the API […]

.

Read more

Adding EntityFramework and Sqlite to ASP.NET Core Web API

So far we’ve covered: Up next is adding an API for our app to talk to and store messages. This will be done with ASP.NET Core Web API, back-ended with a Sqlite database. I’ll start by adding a new ASP.NET Core Web API project to our existing application and call it “ChatterAPI” We’re going to […]

.

Read more

Using Messenger in the CommunityToolkit.Mvvm

As mentioned in my last post I wanted to hit on the IMessenger services included with the CommunityToolkit.Mvvm.  There is a ton of funtionality with the IMessenger but at it’s core it passes messages between an instance that sends a message and any instances that are registered to receive the message. To do this there […]

.

Read more

A light tutorial of CommunityToolkit.Mvvm and Dependency Injection

The intention here is to cover some simple basics with getting CommunityToolkit.Mvvm going using dependency injection. There are a ton of of tutorials that go much further in-depth with CommunityToolkit including Microsoft’s own introduction. But as a basic intro let’s start with what CommunityToolkit.Mvvm is. It is a package that integrates the MVVM pattern into […]

.

Read more

Adding Host to WPF for Dependency Injection

One of the primary frameworks I used to use for DI was Unity Container. It’s a wonderful project but with support from Microsoft for host.services I’ve abandoned Unity Container in favor of the Microsoft solution. The main reason is that I see it everywhere. Maybe it’s the hot, new thing but using it and asking […]

.

Read more

Parsing a nullable primitive to a primitive with generics and the Try-Parse pattern

There is a lot to unpack in that title. Let’s start with the Try-Parse pattern. This pattern is defined in Microsoft’s “Exceptions and Performance” article (which itself comes from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition) and is likely one you are very familiar with. Fundamentally the return type […]

.

Read more

Starting over

Starting over by loading the archive of all my old posts.

.

Read more
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712