Armature.Core 1.2.1

.NET Standard 2.0

Requires NuGet 2.8 or higher.

dotnet add package Armature.Core --version 1.2.1
NuGet\Install-Package Armature.Core -Version 1.2.1
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="Armature.Core" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Armature.Core --version 1.2.1
#r "nuget: Armature.Core, 1.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Armature.Core as a Cake Addin
#addin nuget:?package=Armature.Core&version=1.2.1

// Install Armature.Core as a Cake Tool
#tool nuget:?package=Armature.Core&version=1.2.1

If Armature has done you any good, consider support my future initiatives



Lightweight and extremely easily extensible dependency injection framework

Example of extensibility

See the project Tests.Extensibility to see the example of powerful extensibility possibility without changing the framework itself. It adds support for Maybe as an injected value.

Examples of using

var builder = new Builder(BuildStage.Cache, BuildStage.Initialize, BuildStage.Create)
  new SkipAllUnits
    // inject into constructor
    new IfFirstUnit(new IsConstructor())
        new TryInOrder(
          new GetConstructorByInjectPointId(),
          new GetConstructorWithMaxParametersCount()
    new IfFirstUnit(new IsParameterInfoList())
     .UseBuildAction(new BuildMethodArgumentsInDirectOrder(), BuildStage.Create),
    new IfFirstUnit(new IsParameterInfo())
     .UseBuildAction(new BuildArgumentByParameterType(), BuildStage.Create)


 .InjectInto(Constructor.WithParameters<int, string, Stream>());



Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Armature.Core:

Package Downloads

Armature dependency injection framework, provides fluent syntax and syntax sugar over Armature.Core framework

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 382 3/16/2022
1.1.4 411 4/3/2021
1.0.68 996 11/17/2020
1.0.63 1,553 7/23/2020
1.0.57 464 7/22/2020
1.0.56 505 6/12/2020
1.0.47 570 10/24/2019
1.0.45 3,994 5/22/2019
1.0.44 1,219 2/8/2019
1.0.42 1,748 8/9/2018
1.0.41 784 8/7/2018
1.0.39 842 7/25/2018
1.0.38 1,026 7/17/2018
1.0.37 1,060 6/24/2018
1.0.34 876 6/4/2018
1.0.2 834 5/16/2018
1.0.0 779 5/6/2018

** This version brokes compatibility with the version 1.1.x. **

     * Many classes and methods are renamed for the sake of simplicity, the old "UnitSequenceMatcher" concept is too complex to grasp the idea.
     * The order in which method/constructor arguments are built can be customized, creation build actions build "ParameterInfo[]" unit instead of enumerating
     method/constructor parameters itself.
     * Logging is significantly improved, now it's written in HOCON format therefore is friendly to human and can be processed by script.