ActivateAnything — abstract types, concrete types, constructor dependencies — ActivateAnything just resolves it all and gives you a result. NuGet Package

An `AnythingActivator` will make an extreme effort to find and instantiate a concrete class
which is assignable to a `Type`, whether or not the Type is concrete, whether or not the
Type has constructor dependencies, whether or not a suitable concrete subtype is found
in any currently loaded `Assembly`.

The attempt to find and instantiate suitable Types is rule-driven.



There are three kinds of `IActivateAnythingRule`.
- `IFindTypeRule` provides rules for where to look for candidate concrete subtypes of an abstract type
- `IActivateInstanceRule` simply returns an instance of a concrete type.
- `IChooseConstructorRule` rules for how to choose between constructors when a concrete `Type` has been chosen.

The <em>extremity</em> of the effort lies in its recursive attempt to find and construct the <em>dependencies</em>.




Got any ActivateAnything — abstract types, concrete types, constructor dependencies — ActivateAnything just resolves it all and gives you a result. Question?





Info

Version: 0.3.2
Author(s): Chris F Carroll
Last Update: Monday, September 6, 2021
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/chrisfcarroll/ActivateAnything
NuGet Url: https://www.nuget.org/packages/ActivateAnything


Install
Install-Package ActivateAnything
dotnet add package ActivateAnything
paket add ActivateAnything
ActivateAnything Download (Unzip the "nupkg" after downloading)

.NETFramework 4.5
  • No dependencies.
.NETStandard 2.0
  • No dependencies.
1 package depend on this package.


Tags



STATS

must-have-score

avg-downloads-per-day

1

days-since-last-release

963