Aiursoft.Scanner 9.0.1
Aiursoft Scanner
An Automatic dependencies management system for ASP.NET Core and powers Aiursoft.
Why this project
The traditional way to add dependencies is:
service.AddScoped<MyScopedDependency>();
Which means that you have to manually inject all dependencies. When you have too many of them, it is possible to make a mistake.
How to use Aiursoft.Scanner
First, install Aiursoft.Scanner to your ASP.NET Core project from nuget.org:
dotnet add package Aiursoft.Scanner
Add the interface to your class like this:
using Aiursoft.Scanner.Abstractions;
public class MySingletonService : ISingletonDependency
{
}
public class MyScopedService : IScopedDependency
{
}
public class MyTransientService : ITransientDependency
{
}
And just call this in your StartUp.cs:
using Aiursoft.Scanner;
services.AddScannedDependencies();
That's all! All your dependencies are registered. Just use it like previous before:
public class MyController : Controller
{
private readonly MyScopedService _service;
public MyController(MyScopedService service)
{
_service = service;
}
}
Advanced usage
When you want to register a dependency that implements an abstract, your previous way is:
public class MyClass : IAbstract
{
}
service.AddScoped<IAbstract, MyClass>();
That's fine. But now we want to register this automatically.
Add the dependency interface to your service like this:
public class MyClass : IAbstract, IScopedDependency
{
}
When you are registering all dependencies in your StartUp.cs, tell us that your project supports your abstract.
services.AddScannedDependencies(typeof(IAbstract));
And you can call it with multiple abstracts:
services.AddScannedDependencies(typeof(IAbstract1), typeof(IAbstract2), typeof(IAbstract3));
That's all! Enjoy!
Showing the top 20 packages that depend on Aiursoft.Scanner.
| Packages |
|---|
|
Aiursoft.Archon.SDK
Package Description
|
.NET 9.0
- Aiursoft.Scanner.Abstractions (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
| Version | Last updated |
|---|---|
| 10.0.0 | 11/13/2025 |
| 9.0.12 | 11/12/2025 |
| 9.0.11 | 10/15/2025 |
| 9.0.10 | 9/10/2025 |
| 9.0.9 | 8/5/2025 |
| 9.0.8 | 7/9/2025 |
| 9.0.7 | 6/11/2025 |
| 9.0.6 | 6/1/2025 |
| 9.0.5 | 4/9/2025 |
| 9.0.4 | 3/12/2025 |
| 9.0.3 | 3/29/2025 |
| 9.0.2 | 4/18/2025 |
| 9.0.1 | 3/31/2025 |
| 8.0.2 | 3/31/2025 |
| 8.0.1 | 4/12/2025 |
| 8.0.0 | 3/31/2025 |
| 7.0.2 | 4/4/2025 |
| 7.0.1 | 3/12/2025 |
| 7.0.0 | 3/30/2025 |
| 6.0.11 | 4/24/2025 |
| 6.0.10 | 4/4/2025 |
| 6.0.9 | 4/10/2025 |
| 6.0.8 | 4/30/2025 |
| 6.0.7 | 3/31/2025 |
| 6.0.6 | 3/20/2025 |
| 6.0.5 | 6/7/2025 |
| 6.0.0 | 3/13/2025 |
| 5.0.9 | 3/13/2025 |
| 5.0.8 | 3/19/2025 |
| 5.0.7 | 3/24/2025 |
| 5.0.6 | 3/31/2025 |
| 5.0.5 | 5/20/2025 |
| 5.0.4 | 6/7/2025 |
| 5.0.3 | 3/18/2025 |
| 5.0.2 | 3/13/2025 |
| 5.0.1 | 3/15/2025 |
| 5.0.0 | 3/25/2025 |
| 3.2.11 | 6/6/2025 |
| 3.2.10 | 6/6/2025 |
| 3.2.9 | 4/9/2025 |
| 3.2.8 | 6/6/2025 |
| 3.2.7 | 4/2/2025 |
| 3.2.6 | 3/20/2025 |
| 3.2.5 | 4/7/2025 |
| 3.2.4 | 5/12/2025 |
| 3.2.3 | 3/14/2025 |
| 3.2.2 | 6/7/2025 |
| 3.2.1 | 4/3/2025 |
| 3.2.0 | 4/3/2025 |
| 3.1.14 | 3/14/2025 |
| 3.1.13 | 4/19/2025 |
| 3.1.12 | 3/31/2025 |
| 3.1.11 | 3/19/2025 |
| 3.1.10 | 4/24/2025 |
| 3.1.9 | 4/18/2025 |
| 3.1.8 | 4/8/2025 |
| 3.1.7 | 3/21/2025 |
| 3.1.6 | 3/15/2025 |
| 3.1.5 | 3/27/2025 |
| 3.1.4 | 3/18/2025 |
| 3.1.3 | 3/30/2025 |
| 3.1.2.2 | 3/31/2025 |
| 3.1.2.1 | 4/10/2025 |
| 3.1.2 | 4/21/2025 |
| 3.1.1.8 | 5/23/2025 |
| 3.1.1.7 | 3/25/2025 |
| 3.1.1.6 | 5/23/2025 |
| 3.1.1.5 | 3/19/2025 |
| 3.1.1.4 | 5/21/2025 |
| 3.1.1.3 | 3/31/2025 |
| 3.1.1.2 | 5/23/2025 |