Aspekt Documentation
Welcome to the comprehensive documentation for Aspekt, the modern aspect-oriented programming framework for .NET.
Quick Navigation
Getting Started
Learn the basics of Aspekt and create your first aspect in minutes.
Advanced Topics
Deep dive into advanced features and patterns.
Key Features
🎯 Declarative Programming
Apply cross-cutting concerns using simple attributes on your methods and classes.
🔄 Lifecycle Hooks
Intercept method execution at multiple points:
OnEntry- Before method executionOnExit- After successful executionOnException- When exceptions occurOnSuccess- After successful completion with return value
🚀 Modern .NET Support
- .NET 8.0 / 6.0 / Standard 2.1
- Nullable reference types
- Async/await patterns
- Record types and init properties
📦 Built-in Aspects
- Contract validation (Requires, Ensures)
- Performance monitoring
- Retry policies
- Caching helpers
Community & Support
- GitHub Issues: Report bugs or request features
- Discussions: Ask questions and share ideas
- Source Code: View and contribute on GitHub
Contributing
Aspekt is open source and welcomes contributions! Check out our contribution guidelines to get started.