Outline

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 execution
  • OnExit - After successful execution
  • OnException - When exceptions occur
  • OnSuccess - 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

Contributing

Aspekt is open source and welcomes contributions! Check out our contribution guidelines to get started.