AuserIoc 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package AuserIoc --version 1.0.2                
NuGet\Install-Package AuserIoc -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AuserIoc" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AuserIoc --version 1.0.2                
#r "nuget: AuserIoc, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AuserIoc as a Cake Addin
#addin nuget:?package=AuserIoc&version=1.0.2

// Install AuserIoc as a Cake Tool
#tool nuget:?package=AuserIoc&version=1.0.2                

AuserIoc

介绍

纯 dotNET 的 玩具级容器,能用。

软件架构

支持net4.6.2、net4.7.2、net4.8.1、net6、net8、net9

安装
dotnet add package AuserIoc
使用方法
public class AService(IBService bService)
{
    private readonly IBService _bService = bService;
    public bool CompleteInjection() => _bService != null;
}

public interface IBService { }

public class BService() : IBService { }

// 使用
var builder = new IocContainerBuilder();

builder.RegisterType<IBService>();
builder.RegisterSingleton<AService>();

var container = builder.Build();

var aService = container.Resolve<AService>();
Product 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 is compatible.  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 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8.1

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.3 53 1/2/2025
1.1.2 65 1/1/2025
1.0.3 89 12/9/2024
1.0.2 89 12/6/2024
1.0.1 85 12/3/2024
1.0.0 89 12/3/2024