{"id":22938396,"url":"https://github.com/jacraig/aspectus","last_synced_at":"2025-10-06T02:21:28.693Z","repository":{"id":60772875,"uuid":"74592724","full_name":"JaCraig/Aspectus","owner":"JaCraig","description":"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.","archived":false,"fork":false,"pushed_at":"2025-10-02T16:13:19.000Z","size":22343,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-05T00:33:51.902Z","etag":null,"topics":["aop","aop-library"],"latest_commit_sha":null,"homepage":"https://jacraig.github.io/Aspectus/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaCraig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-23T16:05:59.000Z","updated_at":"2025-09-29T20:13:43.000Z","dependencies_parsed_at":"2023-01-27T22:32:00.443Z","dependency_job_id":"3f26e4fe-6986-4448-aecc-f0d691114534","html_url":"https://github.com/JaCraig/Aspectus","commit_stats":{"total_commits":63,"total_committers":5,"mean_commits":12.6,"dds":"0.47619047619047616","last_synced_commit":"a7f3cb6c956a0f318eb59685c1ac2d4b79d67a1f"},"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"purl":"pkg:github/JaCraig/Aspectus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FAspectus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FAspectus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FAspectus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FAspectus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaCraig","download_url":"https://codeload.github.com/JaCraig/Aspectus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FAspectus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548011,"owners_count":26004816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aop","aop-library"],"created_at":"2024-12-14T12:17:48.859Z","updated_at":"2025-10-06T02:21:28.670Z","avatar_url":"https://github.com/JaCraig.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aspectus\n\n[![.NET Publish](https://github.com/JaCraig/Aspectus/actions/workflows/dotnet-publish.yml/badge.svg)](https://github.com/JaCraig/Aspectus/actions/workflows/dotnet-publish.yml) [![Coverage Status](https://coveralls.io/repos/github/JaCraig/Aspectus/badge.svg?branch=master)](https://coveralls.io/github/JaCraig/Aspectus?branch=master)\n\nAspectus 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.\n\n## Key Features\n\n- **Easy Integration**: Aspectus seamlessly integrates with your project by registering with the IoC (Inversion of Control) container during startup.\n- **Code Generation**: Leveraging Roslyn, Aspectus generates code dynamically, allowing you to write expressive C# code for implementing aspects.\n- **Flexible Aspect Customization**: Implement the `IAspect` interface to define custom logic for constructors, methods, and exception handling.\n- **AOP Modules**: Aspectus supports modules, enabling you to consolidate and load setup code efficiently.\n- **NuGet Package**: Install Aspectus easily through NuGet, simplifying the setup process for your projects.\n\n## Installation\n\nTo install Aspectus, use the NuGet package manager:\n\n```\nInstall-Package Aspectus\n```\n\n## Getting Started\n\nFollow these steps to start using Aspectus in your project:\n\n1. Register Aspectus with your IoC container during startup. Example code:\n\n   ```csharp\n   ServiceProvider? ServiceProvider = new ServiceCollection().RegisterAspectus()?.BuildServiceProvider();\n   ```\n\n   or\n\n   ```csharp\n   ServiceProvider? ServiceProvider = new ServiceCollection().AddCanisterModules()?.BuildServiceProvider();\n   ```\n\n   As the library supports [Canister Modules](https://github.com/JaCraig/Canister).\n\n3. Implement aspects by creating classes that inherit from the `IAspect` interface. Customize aspects based on your specific requirements, such as constructor setups, method injections, and exception handling.\n\n   ```csharp\n   public class TestAspect : IAspect\n   {\n       // Implement your aspect logic here\n   }\n   ```\n\n4. Utilize Aspectus to create instances of types with injected aspects.\n\n   ```csharp\n   var aspectus = ServiceProvider.GetRequiredService\u003cAspectus\u003e();\n   aspectus.Setup(typeof(YourClass));\n   var item = aspectus.Create\u003cYourClass\u003e();\n   // Use and enjoy your enhanced object\n   ```\n\nFor a more detailed guide on using Aspectus, including advanced scenarios and AOP modules, refer to the [Aspectus Documentation](https://jacraig.github.io/Aspectus/articles/intro.html).\n\n## Build Process\n\nTo build Aspectus from source, ensure you have the following:\n\n- Visual Studio 2022\n- .Net 8\n\nSimply clone the repository and open the solution in Visual Studio.\n\n## Contributing\n\nContributions are welcome! To contribute to Aspectus, please follow these steps:\n\n1. Fork the repository.\n2. Create your feature branch: `git checkout -b feature/YourFeature`.\n3. Commit your changes: `git commit -am 'Add YourFeature'`.\n4. Push to the branch: `git push origin feature/YourFeature`.\n5. Submit a pull request.\n\nPlease ensure your code follows the existing coding style and includes appropriate tests. Additionally, make sure to update the documentation as needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Faspectus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacraig%2Faspectus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Faspectus/lists"}