What problem does it solve?
This Skill provides expert guidance for .NET 8.0 WPF development, addressing common issues like memory leaks, UI thread blocking, and incorrect async patterns, ensuring VoiceLite's desktop application is robust and performant.
Core Features & Use Cases
- Disposal Patterns: Emphasizes correct
IDisposable implementation for resources like NAudio to prevent memory leaks.
- UI Thread Safety: Guides on using the
Dispatcher for safe UI updates from background threads.
- Async/Await Best Practices: Explains proper
async void for event handlers and ConfigureAwait(false) for non-UI code to prevent deadlocks.
- Use Case: When refactoring VoiceLite's audio recording, use this skill to ensure that
WaveInEvent resources are correctly disposed using the IDisposable pattern, preventing memory leaks and ensuring application stability.
Quick Start
Review the AudioRecorder class in VoiceLite for proper IDisposable implementation to prevent memory leaks, ensuring WaveInEvent resources are correctly released.