Carubbi.ServiceLocator 1.1.1

A Simple Service Locator Helper

Install-Package Carubbi.ServiceLocator -Version 1.1.1
dotnet add package Carubbi.ServiceLocator --version 1.1.1
<PackageReference Include="Carubbi.ServiceLocator" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Carubbi.ServiceLocator --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Carubbi.ServiceLocator

A simple helper to implement Service Locator

Example:

 <configSections>
    <section name="Implementations" type="System.Configuration.DictionarySectionHandler"/>
 </configSections>
<Implementations>
    <add key="Intetrface" value="Namespace.Class, AssemblyName"/>
    <add key="ConcreteTypeUsedByReflection" value="Namespace.Class, AssemblyName"/>
</Implementations>
var implementation = ImplementationResolver.Resolve<Interface>();

or

var implementation = ImplementationResolver.Resolve("ConcreteTypeUsedByReflection");

Carubbi.ServiceLocator

A simple helper to implement Service Locator

Example:

 <configSections>
    <section name="Implementations" type="System.Configuration.DictionarySectionHandler"/>
 </configSections>
<Implementations>
    <add key="Intetrface" value="Namespace.Class, AssemblyName"/>
    <add key="ConcreteTypeUsedByReflection" value="Namespace.Class, AssemblyName"/>
</Implementations>
var implementation = ImplementationResolver.Resolve<Interface>();

or

var implementation = ImplementationResolver.Resolve("ConcreteTypeUsedByReflection");

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.1 181 9/13/2018
1.1.0 143 9/13/2018
1.0.0 372 8/20/2018