Tag: Design
-
How to Choose Between PeriodicTimer, System.Threading.Timer, and DispatcherTimer - First Organize Periodic Work in .NET
A practical guide to choosing between PeriodicTimer, System.Threading.Timer, and DispatcherTimer, including async processing, ThreadPool callbacks, and WPF U...
-
Why It Is Worth Bringing Generic Host / BackgroundService into a Desktop App - Startup, Lifetime, and Graceful Shutdown Become Much Easier to Organize
When startup logic, periodic work, shutdown handling, logging, configuration, and dependencies begin to scatter across a Windows desktop app, bringing in .NE...
-
How to Use FileSystemWatcher Safely - Lost Events, Duplicate Notifications, and the Traps Around Completion Detection
A practical guide to FileSystemWatcher that explains missed events, duplicate notifications, completion-detection traps, rescans, atomic claims, and idempote...
-
C# async/await Best Practices - A Decision Table for Task.Run and ConfigureAwait
A practical guide to C# async/await, organized around decision tables for I/O-bound work, CPU-bound work, Task.Run, ConfigureAwait(false), fire-and-forget, a...
-
A Practical Guide to Soft Real-Time on Windows - A Checklist for Reducing Latency
A checklist-style guide to soft real-time on ordinary Windows, covering waiting strategy, priorities, timers, power settings, queue design, and measurement.
-
Safe File Integration Locking - Best Practices for File Locks, Atomic Claims, and Idempotent Processing
A practical guide to file-integration concurrency control, organized around file locks, atomic claims, temp-to-rename publication, and idempotency.
-
What an HCP Chart Is - How to Use MakingHCPChartSkill to Turn HCP-DSL into Deterministic SVG
An introduction to HCP charts and a practical walkthrough of how MakingHCPChartSkill turns HCP-DSL into deterministic SVG, including the basic idea, reposito...