Aspectus 5.0.2
See the version list below for details.
dotnet add package Aspectus --version 5.0.2
NuGet\Install-Package Aspectus -Version 5.0.2
<PackageReference Include="Aspectus" Version="5.0.2" />
<PackageVersion Include="Aspectus" Version="5.0.2" />
<PackageReference Include="Aspectus" />
paket add Aspectus --version 5.0.2
#r "nuget: Aspectus, 5.0.2"
#:package Aspectus@5.0.2
#addin nuget:?package=Aspectus&version=5.0.2
#tool nuget:?package=Aspectus&version=5.0.2
Aspectus
Aspectus is an advanced Aspect-Oriented Programming (AOP) library that simplifies the injection of cross-cutting concerns into your codebase. It empowers you to write clean and maintainable code by separating cross-cutting concerns from the core logic of your application.
Key Features
- Easy Integration: Aspectus seamlessly integrates with your project by registering with the IoC (Inversion of Control) container during startup.
- Code Generation: Leveraging Roslyn, Aspectus generates code dynamically, allowing you to write expressive C# code for implementing aspects.
- Flexible Aspect Customization: Implement the
IAspectinterface to define custom logic for constructors, methods, and exception handling. - AOP Modules: Aspectus supports modules, enabling you to consolidate and load setup code efficiently.
- NuGet Package: Install Aspectus easily through NuGet, simplifying the setup process for your projects.
Installation
To install Aspectus, use the NuGet package manager:
Install-Package Aspectus
Getting Started
Follow these steps to start using Aspectus in your project:
Register Aspectus with your IoC container during startup. Example code for ASP.NET Core:
services.AddCanisterModules();Implement aspects by creating classes that inherit from the
IAspectinterface. Customize aspects based on your specific requirements, such as constructor setups, method injections, and exception handling.public class TestAspect : IAspect { // Implement your aspect logic here }Utilize Aspectus to create instances of types with injected aspects.
var aspectus = Canister.Builder.Bootstrapper.Resolve<Aspectus>(); aspectus.Setup(typeof(YourClass)); var item = aspectus.Create<YourClass>(); // Use and enjoy your enhanced object
For a more detailed guide on using Aspectus, including advanced scenarios and AOP modules, refer to the Aspectus Documentation.
Build Process
To build Aspectus from source, ensure you have the following:
- Visual Studio 2022
- .Net 6
Simply clone the repository and open the solution in Visual Studio.
Contributing
Contributions are welcome! To contribute to Aspectus, please follow these steps:
- Fork the repository.
- Create your feature branch:
git checkout -b feature/YourFeature. - Commit your changes:
git commit -am 'Add YourFeature'. - Push to the branch:
git push origin feature/YourFeature. - Submit a pull request.
Please ensure your code follows the existing coding style and includes appropriate tests. Additionally, make sure to update the documentation as needed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Canister.IoC (>= 5.1.1)
- Microsoft.CodeAnalysis.Common (>= 4.6.0)
- Microsoft.CodeAnalysis.CSharp (>= 4.6.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.1)
- Microsoft.Extensions.ObjectPool (>= 7.0.8)
- System.IO.FileSystem (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.7.0)
- System.Runtime.Loader (>= 4.3.0)
- System.Threading.Tasks.Parallel (>= 4.3.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Aspectus:
| Package | Downloads |
|---|---|
|
BigBook
Big Book of Data Types is a collection of various data types including Vector3, Set, RingBuffer, PriorityQueue, Fractions, and DateSpan. It also includes a number of extension methods for types found already in .Net. |
|
|
FileCurator.Windows
FileCurator.Windows is a set of formats that are only available using the full version of the .Net framework. If an alternative is built in .Net Standard these will be replaced. So consider this a hold over. |
|
|
HaterAide
HaterAide is a simple ORM that contains a number of features including automatic schema updates to a database based on the object mappings, stored procedure based calls and generation, etc. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.2.20 | 118 | 7/18/2026 |
| 6.2.19 | 125 | 7/10/2026 |
| 6.2.18 | 283 | 5/27/2026 |
| 6.2.17 | 5,150 | 5/14/2026 |
| 6.2.16 | 515 | 5/13/2026 |
| 6.2.15 | 146 | 5/12/2026 |
| 6.2.14 | 2,326 | 4/27/2026 |
| 6.2.13 | 741 | 4/24/2026 |
| 6.2.12 | 550 | 4/23/2026 |
| 6.2.11 | 128 | 4/23/2026 |
| 6.2.10 | 140 | 4/23/2026 |
| 6.2.9 | 147 | 4/23/2026 |
| 6.2.8 | 596 | 4/22/2026 |
| 6.2.7 | 1,956 | 4/16/2026 |
| 6.2.6 | 468 | 4/15/2026 |
| 6.2.5 | 2,818 | 3/30/2026 |
| 6.2.4 | 881 | 3/29/2026 |
| 6.2.3 | 271 | 3/13/2026 |
| 6.2.2 | 201 | 3/11/2026 |
| 5.0.2 | 761 | 7/8/2023 |