.NET Process Boilerplate

Exploring standardized boilerplate for a variety of process types.

Here's a known list of process types:

General Process Actions

Startup Debug Hooks

Top of Program:main, we include an optional debug spin-wait.

This is triggered by a command-line argument to debug the process.

If activated, the process will wait for a debugger to connect, so early startup activities can be diagnosed.

See this page for implementation details: DotNet Startup Remote Debugging Hook

Secrets Service

Configuration Service

 

Logging Service

Manages logging for the process:

Telemetry Service

Publishes action spans and metrics to a central collector.

Status Publishing Service

For publishing when a process starts, ends, errors, and periodically while running.

This service is responsible for publishing process metadata, such as:

 


Revision #2
Created 17 July 2025 12:09:07 by glwhite
Updated 17 July 2025 12:55:40 by glwhite