Aiursoft.Scanner 9.0.5

Aiursoft Scanner

MIT licensed Pipeline stat Test Coverage NuGet version (Aiursoft.Scanner) ManHours

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 install

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!

How to contribute

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.

We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Showing the top 20 packages that depend on Aiursoft.Scanner.

Packages
Aiursoft.Archon.SDK
Package Description
Aiursoft.Developer.SDK
Package Description
Aiursoft.Directory.SDK
Nuget package of 'SDK' provided by Aiursoft
Aiursoft.Directory.SDK
Package Description
Aiursoft.Gateway.SDK
Package Description
Aiursoft.Observer.SDK
Package Description

Version Last updated
9.0.5 04/09/2025
9.0.4 03/12/2025
9.0.3 03/29/2025
9.0.2 04/18/2025
9.0.1 03/31/2025
8.0.2 03/31/2025
8.0.1 04/12/2025
8.0.0 03/31/2025
7.0.2 04/04/2025
7.0.1 03/12/2025
7.0.0 03/30/2025
6.0.11 06/24/2023
6.0.10 04/04/2025
6.0.9 04/10/2025
6.0.8 05/11/2023
6.0.7 03/31/2025
6.0.6 03/20/2025
6.0.5 05/13/2022
6.0.0 03/13/2025
5.0.9 03/13/2025
5.0.8 03/19/2025
5.0.7 03/24/2025
5.0.6 03/31/2025
5.0.5 02/16/2021
5.0.4 01/29/2021
5.0.3 03/18/2025
5.0.2 03/13/2025
5.0.1 03/15/2025
5.0.0 03/25/2025
3.2.11 10/18/2020
3.2.10 10/03/2020
3.2.9 04/09/2025
3.2.8 09/10/2020
3.2.7 04/02/2025
3.2.6 03/20/2025
3.2.5 04/07/2025
3.2.4 07/03/2020
3.2.3 03/14/2025
3.2.2 06/18/2020
3.2.1 04/03/2025
3.2.0 04/03/2025
3.1.14 03/14/2025
3.1.13 04/19/2025
3.1.12 03/31/2025
3.1.11 03/19/2025
3.1.10 05/18/2020
3.1.9 04/18/2025
3.1.8 04/08/2025
3.1.7 03/21/2025
3.1.6 03/15/2025
3.1.5 03/27/2025
3.1.4 03/18/2025
3.1.3 03/30/2025
3.1.2.2 03/31/2025
3.1.2.1 04/10/2025
3.1.2 02/21/2020
3.1.1.8 02/17/2020
3.1.1.7 03/25/2025
3.1.1.6 01/28/2020
3.1.1.5 03/19/2025
3.1.1.4 01/21/2020
3.1.1.3 03/31/2025
3.1.1.2 01/20/2020