EasyLocator 1.0.6
dotnet add package EasyLocator --version 1.0.6
NuGet\Install-Package EasyLocator -Version 1.0.6
<PackageReference Include="EasyLocator" Version="1.0.6" />
paket add EasyLocator --version 1.0.6
#r "nuget: EasyLocator, 1.0.6"
// Install EasyLocator as a Cake Addin #addin nuget:?package=EasyLocator&version=1.0.6 // Install EasyLocator as a Cake Tool #tool nuget:?package=EasyLocator&version=1.0.6
EasyLocator is an easy IoC Container that implements IServiceLocator(Microsoft.Practices.ServiceLocation https://commonservicelocator.codeplex.com/).It allows you to register Services and instances.
Named registering : You can also name them if you want to store several instances of a type or retrieve them easily by name.
Caching Strategy : by default you get new instances every time you try to get one. You can also keep alive instances and cache them.
EasyLocator uses Reflection to Resolve not registered types . Also registering ViewModels for example is not required. EasyLocator registers them and instanciates them for you . Only registering Services is really required (pair interface + implementation for example) because it can't resolves the "preferred" implementation .
BCL targets :.NET 4.5, Windows 8, Windows Phone 8.1 and Windows Phone Silverlight 8 .
Learn more about Target Frameworks and .NET Standard.
-
- CommonServiceLocator (>= 1.3.0)
GitHub repositories
This package is not used by any popular GitHub repositories.