Skip to main content

Recently Updated Pages

Unit Testing for an Exception

.NET

Sometimes, a unit test needs to ensure a particular exception type occurs. Here’s how to check t...

Updated 7 months ago by glwhite

NET Core Test API

.NET

We have a standing REST API with various endpoints for simulating different method types, return ...

Updated 7 months ago by glwhite

Long Numbered List Randomly Changes

TODO-InBox

Documentation Open the Network VLANs listing, and add a new entry for the VLAN. Main Sw...

Updated 7 months ago by glwhite

WYSIWYG Numbered List Resetting Issue

TODO-InBox

Some list number text, starting a numbered list. More list number text, continuing the same nu...

Updated 7 months ago by glwhite

#nullable Warning

.NET

If the compiler is giving you warnings about nullable reference types, then you may need to enabl...

Updated 8 months ago by glwhite

VS IDE Suppress Compiler Warnings Project Wide

.NET

There are some cases where it is necessary to suppress IDE compiler warnings that apply to the en...

Updated 8 months ago by glwhite

Unit Testing with IServiceProvider

.NET

When you create unit tests for class types that directly use DI to retrieve dependencies, you wil...

Updated 8 months ago by glwhite

Duplicating .NET Core DI

.NET

NOTE: If you are looking for how to access DI services, see this: HowTo Access DI Services Here ...

Updated 8 months ago by glwhite

Consuming NET Core Background Service with DI

.NET

To properly consumes a background service from a controller or another service, it must be regist...

Updated 8 months ago by glwhite

Consuming Services Inside Startup

.NET

During Startup.ConfigureServices During application startup, the Startup.ConfigureServices metho...

Updated 8 months ago by glwhite

C# Disposed in Derived Types

.NET

People make lots of references to Microsoft articles about how to properly handle Dispose in deri...

Updated 8 months ago by glwhite

Layout Service

Angular Component Book

The layout service provides the means to display and swap in outer-frames of an app. This servic...

Updated 8 months ago by glwhite

Strongly Typed Constant Parameters

.NET

You will eventually run into the need for a function to accept a restricted set of value for a pa...

Updated 8 months ago by glwhite

PostGreSQL .NET DateTime Usage

PostgreSQL

.NET EF Core 6 made a breaking change to how DateTime is stored in PostGreSQL. This article expl...

Updated 8 months ago by glwhite

PostgreSQL Permissions

PostgreSQL

Here are three major points you need to understand about object ownership: Only a superuser ...

Updated 8 months ago by glwhite

Return Multiple Values from Async Method

.NET

Async method cannot have Ref or an Out parameters. So, we cannot pass back data from them through...

Updated 8 months ago by glwhite

Create PFX Cert File (for IIS)

System Administration

Windows IIS requires a pfx file when importing an SSL certificate. This can be created from a cr...

Updated 8 months ago by glwhite

HowTo Retrieve Key and Cert from PFX

System Administration

Here’s a good article on how to export SSL certificates, extract the key and certificate, and imp...

Updated 8 months ago by glwhite

Six Ways to Multi-Thread

.NET

Six ways to initiate tasks on another thread in .NET

Updated 8 months ago by glwhite

Kali in VMWare

System Administration

Here are some things for installing Kali in a VMWare VM. Adapted from here: https://www.kali.org...

Updated 8 months ago by glwhite