• Skip to primary navigation
  • Skip to main content

Josh Withee

  • Home
  • Blog
  • Contact
  • Show Search
Hide Search

Josh Withee

C#: Track Performance of Database Calls

Josh Withee · February 24, 2022 · Leave a Comment

Plug-n-play thread-safe C# utility class for determining which database calls are slowing down your application. Examples: …

[Read more...] about C#: Track Performance of Database Calls

Simple C# Cache

Josh Withee · February 23, 2022 · Leave a Comment

A plug-n-play thread-safe cache that can be dropped into any C# application. Notes: The active parameter exists for easy disabling of the cacheIf you are caching objects (i.e. T is a reference type) you should supply a clone function that is more efficient than the default …

[Read more...] about Simple C# Cache

Singleton Pattern Implementations

Josh Withee · September 10, 2020 · Leave a Comment

A brief reference on ways to implement the singleton pattern. Static Class Use a static class for your singleton only in the most basic of applications. Here is an example of using a static class for a threadsafe collection of objects that you want to access from anywhere in your …

[Read more...] about Singleton Pattern Implementations

SignalR Quickstart

Josh Withee · August 8, 2020 · 2 Comments

How to set up SignalR in your ASP.NET Core 3.1 project. Install the Microsoft.AspNetCore.SignalR NuGet package: Create a Hubs folder in your project, and create MySignalRHub.cs inside of it: Update MySignalRHub.cs like so: Use dependency injection to access your DbContext (or …

[Read more...] about SignalR Quickstart

RabbitMQ Quickstart

Josh Withee · July 27, 2020 · Leave a Comment

How to download & install RabbitMQ on Windows, enable the management GUI, and publish and consume messages using C#. Download the latest Windows installer for RabbitMQ Server (this one is version 3.8.5) from …

[Read more...] about RabbitMQ Quickstart

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to Next Page »

Copyright © 2023