InjectionMap 1.5.0
See the version list below for details.
dotnet add package InjectionMap --version 1.5.0
NuGet\Install-Package InjectionMap -Version 1.5.0
<PackageReference Include="InjectionMap" Version="1.5.0" />
paket add InjectionMap --version 1.5.0
#r "nuget: InjectionMap, 1.5.0"
// Install InjectionMap as a Cake Addin #addin nuget:?package=InjectionMap&version=1.5.0 // Install InjectionMap as a Cake Tool #tool nuget:?package=InjectionMap&version=1.5.0
InjectionMap is a very small and extremely lightweight IoC/DI container for .NET.
InjectionMap allows loose coupling betweeen a client's dependencies and its own behaviour. InjectionMap promotes reusability, testability and maintainability of any part of an application.
InjectionMap supports .Net 4.5, Silverlight 5, Windows Phone 8 or higher and Windows Store apps for Windows 8 or higher.
- InjectionMap uses type mapping to reference the key/reference and the implementation.
- Instances are resolved using reflection or can be provided through a callback whitch allows you to create the instance in your own code.
- It suports a fluent syntax to help keep the code simple, small and clean.
- The desired Constructors can be marked with attributes or will be selected according to the passed arguments.
- Parameters for constructors can be injected or passed at the time of mapping as objects or as delegate expressions.
- InjectionMap is very simple and straightforward.
Bugs, issues or feature wishes can submitted on https://github.com/InjectionMap/InjectionMap on the issues page or feel free to fork the project and send a pull request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Silverlight | sl5 is compatible. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wp8 is compatible. wp81 was computed. wpa81 is compatible. |
Windows Store | netcore was computed. netcore45 is compatible. netcore451 was computed. |
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on InjectionMap:
Package | Downloads |
---|---|
InjectionMap.Configuration
InjectionMap.Configuration is a small extension to InjectionMap for defining mappings in the application configuration file. |
|
InjectionMap.Wpf
InjectionMap is a small extension to InjectionMap for WPF Applications. This extension allows viewmodels to be injected into the DataContext of a View (FrameworkElement). |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.5.6 | 2,026 | 10/14/2015 |
1.5.6-RC02 | 1,447 | 4/28/2015 |
1.5.5 | 1,716 | 1/22/2015 |
1.5.5-RC9 | 1,687 | 12/22/2014 |
1.5.5-RC8 | 1,725 | 12/22/2014 |
1.5.5-RC7 | 1,495 | 12/17/2014 |
1.5.5-RC6 | 1,427 | 12/16/2014 |
1.5.5-RC10 | 1,576 | 12/26/2014 |
1.5.4 | 2,145 | 11/4/2014 |
1.5.3 | 2,132 | 11/4/2014 |
1.5.2 | 2,094 | 11/4/2014 |
1.5.2-RC1 | 1,590 | 11/4/2014 |
1.5.1 | 1,562 | 10/13/2014 |
1.5.0 | 1,613 | 10/13/2014 |
1.5.0-RC1 | 1,260 | 10/13/2014 |
1.4.8 | 1,645 | 9/3/2014 |
1.4.7 | 1,634 | 9/2/2014 |
1.4.7-RC3 | 1,244 | 9/3/2014 |
1.4.7-RC2 | 1,313 | 9/3/2014 |
1.4.6 | 1,672 | 8/24/2014 |
1.4.5 | 1,624 | 8/18/2014 |
1.4.4 | 1,694 | 7/18/2014 |
1.4.3 | 1,613 | 5/29/2014 |
1.4.2 | 1,569 | 5/26/2014 |
1.4.1 | 1,589 | 5/20/2014 |
1.3.7 | 1,669 | 5/10/2014 |
1.3.5 | 1,615 | 5/1/2014 |
1.3.1 | 1,553 | 4/30/2014 |
1.2.1 | 1,742 | 4/29/2014 |
1.2.0 | 1,785 | 4/27/2014 |
1.1.0 | 1,632 | 4/26/2014 |
1.0.0 | 1,716 | 4/26/2014 |
1.5.0
- Allow to pass a MappingContainer to InjectionMapper.Initialize(...)
- Constructors that have to be used can be defined when creating the map or when resolving.
1.4.8
- Renamed IInjectionMapper to IMapInitializer
- Moved Exceptions to base namespace
- Moved ComponentMapper to public
- InjectionMapper.Map<T>() now also maps to custom containers
- Added ExtendAll<T>() to InjectionResolver to extend all registered mappings of the type
- Changed License to Ms-PL
- Added InjectionResolver.For<T>() to resolve and extend unmapped types
- Refactored InjectionResolver.ExtendMap<T>() to simply extend existing mappings
- Added CLSComplient Attribute to assembly
- Expression Interfaces don't inherit from IComponentExpression to prevent return values showing component properties. Expression implementaitons additionaly inherit from IComponentExpression.
- Converted internal Ensure implementation to Extensionmethods
- Moved Internal implementation from Resolver, Mapping and Component to InjectionMap.Internal namespace