close #22: return the registered `IRegistrationBase`

pull/32/head v1.3.0
Simon Gockner 6 years ago
parent c80f11d7ce
commit 69104a6e14
  1. 27
      LightweightIocContainer/Interfaces/IIocContainer.cs
  2. 72
      LightweightIocContainer/IocContainer.cs
  3. 18
      LightweightIocContainer/LightweightIocContainer.xml

@ -27,14 +27,16 @@ namespace LightweightIocContainer.Interfaces
/// <typeparam name="TInterface">The Interface to register</typeparam> /// <typeparam name="TInterface">The Interface to register</typeparam>
/// <typeparam name="TImplementation">The Type that implements the interface</typeparam> /// <typeparam name="TImplementation">The Type that implements the interface</typeparam>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
void Register<TInterface, TImplementation>(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface; /// <returns>The created <see cref="IRegistrationBase"/></returns>
IDefaultRegistration<TInterface> Register<TInterface, TImplementation>(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface;
/// <summary> /// <summary>
/// Register a <see cref="Type"/> without an interface/> /// Register a <see cref="Type"/> without an interface/>
/// </summary> /// </summary>
/// <typeparam name="TImplementation">The <see cref="Type"/> to register</typeparam> /// <typeparam name="TImplementation">The <see cref="Type"/> to register</typeparam>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
void Register<TImplementation>(Lifestyle lifestyle = Lifestyle.Transient); /// <returns>The created <see cref="IRegistrationBase"/></returns>
IDefaultRegistration<TImplementation> Register<TImplementation>(Lifestyle lifestyle = Lifestyle.Transient);
/// <summary> /// <summary>
/// Register an Interface with a Type that implements it as a multiton/> /// Register an Interface with a Type that implements it as a multiton/>
@ -42,7 +44,8 @@ namespace LightweightIocContainer.Interfaces
/// <typeparam name="TInterface">The Interface to register</typeparam> /// <typeparam name="TInterface">The Interface to register</typeparam>
/// <typeparam name="TImplementation">The Type that implements the interface</typeparam> /// <typeparam name="TImplementation">The Type that implements the interface</typeparam>
/// <typeparam name="TScope">The Type of the multiton scope</typeparam> /// <typeparam name="TScope">The Type of the multiton scope</typeparam>
void Register<TInterface, TImplementation, TScope>() where TImplementation : TInterface; /// <returns>The created <see cref="IRegistrationBase"/></returns>
IMultitonRegistration<TInterface> Register<TInterface, TImplementation, TScope>() where TImplementation : TInterface;
/// <summary> /// <summary>
/// Register an Interface with a Type that implements it/> /// Register an Interface with a Type that implements it/>
@ -50,14 +53,16 @@ namespace LightweightIocContainer.Interfaces
/// <param name="tInterface">The Interface to register</param> /// <param name="tInterface">The Interface to register</param>
/// <param name="tImplementation">The Type that implements the interface</param> /// <param name="tImplementation">The Type that implements the interface</param>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
void Register(Type tInterface, Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient); /// <returns>The created <see cref="IRegistrationBase"/></returns>
IRegistrationBase Register(Type tInterface, Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient);
/// <summary> /// <summary>
/// Register a <see cref="Type"/> without an interface/> /// Register a <see cref="Type"/> without an interface/>
/// </summary> /// </summary>
/// <param name="tImplementation">The <see cref="Type"/> to register</param> /// <param name="tImplementation">The <see cref="Type"/> to register</param>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
void Register(Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient); /// <returns>The created <see cref="IRegistrationBase"/></returns>
IRegistrationBase Register(Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient);
/// <summary> /// <summary>
/// Register an Interface with a Type that implements it as a multiton/> /// Register an Interface with a Type that implements it as a multiton/>
@ -65,26 +70,30 @@ namespace LightweightIocContainer.Interfaces
/// <param name="tInterface">The Interface to register</param> /// <param name="tInterface">The Interface to register</param>
/// <param name="tImplementation">The Type that implements the interface</param> /// <param name="tImplementation">The Type that implements the interface</param>
/// <param name="tScope">The Type of the multiton scope</param> /// <param name="tScope">The Type of the multiton scope</param>
void Register(Type tInterface, Type tImplementation, Type tScope); /// <returns>The created <see cref="IRegistrationBase"/></returns>
IRegistrationBase Register(Type tInterface, Type tImplementation, Type tScope);
/// <summary> /// <summary>
/// Register an Interface as an abstract typed factory/> /// Register an Interface as an abstract typed factory/>
/// </summary> /// </summary>
/// <typeparam name="TFactory">The abstract typed factory to register</typeparam> /// <typeparam name="TFactory">The abstract typed factory to register</typeparam>
void RegisterFactory<TFactory>(); /// <returns>The created <see cref="IRegistrationBase"/></returns>
ITypedFactoryRegistration<TFactory> RegisterFactory<TFactory>();
/// <summary> /// <summary>
/// Register an Interface as an abstract typed factory/> /// Register an Interface as an abstract typed factory/>
/// </summary> /// </summary>
/// <param name="tFactory">The abstract typed factory to register</param> /// <param name="tFactory">The abstract typed factory to register</param>
void RegisterFactory(Type tFactory); /// <returns>The created <see cref="IRegistrationBase"/></returns>
IRegistrationBase RegisterFactory(Type tFactory);
/// <summary> /// <summary>
/// Register an Interface with an <see cref="ResolveCallback{T}"/> as a callback that is called when <see cref="Resolve{T}()"/> is called /// Register an Interface with an <see cref="ResolveCallback{T}"/> as a callback that is called when <see cref="Resolve{T}()"/> is called
/// </summary> /// </summary>
/// <typeparam name="TInterface">The Interface to register</typeparam> /// <typeparam name="TInterface">The Interface to register</typeparam>
/// <param name="unitTestCallback">The <see cref="ResolveCallback{T}"/> for the callback</param> /// <param name="unitTestCallback">The <see cref="ResolveCallback{T}"/> for the callback</param>
void RegisterUnitTestCallback<TInterface>(ResolveCallback<TInterface> unitTestCallback); /// <returns>The created <see cref="IRegistrationBase"/></returns>
IUnitTestCallbackRegistration<TInterface> RegisterUnitTestCallback<TInterface>(ResolveCallback<TInterface> unitTestCallback);
/// <summary> /// <summary>
/// Gets an instance of the given <see cref="Type"/> /// Gets an instance of the given <see cref="Type"/>

@ -58,9 +58,13 @@ namespace LightweightIocContainer
/// <typeparam name="TInterface">The Interface to register</typeparam> /// <typeparam name="TInterface">The Interface to register</typeparam>
/// <typeparam name="TImplementation">The Type that implements the interface</typeparam> /// <typeparam name="TImplementation">The Type that implements the interface</typeparam>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
public void Register<TInterface, TImplementation>(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IDefaultRegistration<TInterface> Register<TInterface, TImplementation>(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface
{ {
Register(_registrationFactory.Register<TInterface, TImplementation>(lifestyle)); IDefaultRegistration<TInterface> registration = _registrationFactory.Register<TInterface, TImplementation>(lifestyle);
Register(registration);
return registration;
} }
/// <summary> /// <summary>
@ -68,9 +72,13 @@ namespace LightweightIocContainer
/// </summary> /// </summary>
/// <typeparam name="TImplementation">The <see cref="Type"/> to register</typeparam> /// <typeparam name="TImplementation">The <see cref="Type"/> to register</typeparam>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
public void Register<TImplementation>(Lifestyle lifestyle = Lifestyle.Transient) /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IDefaultRegistration<TImplementation> Register<TImplementation>(Lifestyle lifestyle = Lifestyle.Transient)
{ {
Register(_registrationFactory.Register<TImplementation>(lifestyle)); IDefaultRegistration<TImplementation> registration = _registrationFactory.Register<TImplementation>(lifestyle);
Register(registration);
return registration;
} }
/// <summary> /// <summary>
@ -79,9 +87,13 @@ namespace LightweightIocContainer
/// <typeparam name="TInterface">The Interface to register</typeparam> /// <typeparam name="TInterface">The Interface to register</typeparam>
/// <typeparam name="TImplementation">The Type that implements the interface</typeparam> /// <typeparam name="TImplementation">The Type that implements the interface</typeparam>
/// <typeparam name="TScope">The Type of the multiton scope</typeparam> /// <typeparam name="TScope">The Type of the multiton scope</typeparam>
public void Register<TInterface, TImplementation, TScope>() where TImplementation : TInterface /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IMultitonRegistration<TInterface> Register<TInterface, TImplementation, TScope>() where TImplementation : TInterface
{ {
Register(_registrationFactory.Register<TInterface, TImplementation, TScope>()); IMultitonRegistration<TInterface> registration = _registrationFactory.Register<TInterface, TImplementation, TScope>();
Register(registration);
return registration;
} }
/// <summary> /// <summary>
@ -90,9 +102,13 @@ namespace LightweightIocContainer
/// <param name="tInterface">The Interface to register</param> /// <param name="tInterface">The Interface to register</param>
/// <param name="tImplementation">The Type that implements the interface</param> /// <param name="tImplementation">The Type that implements the interface</param>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
public void Register(Type tInterface, Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient) /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IRegistrationBase Register(Type tInterface, Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient)
{ {
Register(_registrationFactory.Register(tInterface, tImplementation, lifestyle)); IRegistrationBase registration = _registrationFactory.Register(tInterface, tImplementation, lifestyle);
Register(registration);
return registration;
} }
/// <summary> /// <summary>
@ -100,9 +116,13 @@ namespace LightweightIocContainer
/// </summary> /// </summary>
/// <param name="tImplementation">The <see cref="Type"/> to register</param> /// <param name="tImplementation">The <see cref="Type"/> to register</param>
/// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param> /// <param name="lifestyle">The <see cref="Lifestyle"/> for this <see cref="IDefaultRegistration{TInterface}"/></param>
public void Register(Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient) /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IRegistrationBase Register(Type tImplementation, Lifestyle lifestyle = Lifestyle.Transient)
{ {
Register(_registrationFactory.Register(tImplementation, lifestyle)); IRegistrationBase registration = _registrationFactory.Register(tImplementation, lifestyle);
Register(registration);
return registration;
} }
/// <summary> /// <summary>
@ -111,27 +131,39 @@ namespace LightweightIocContainer
/// <param name="tInterface">The Interface to register</param> /// <param name="tInterface">The Interface to register</param>
/// <param name="tImplementation">The Type that implements the interface</param> /// <param name="tImplementation">The Type that implements the interface</param>
/// <param name="tScope">The Type of the multiton scope</param> /// <param name="tScope">The Type of the multiton scope</param>
public void Register(Type tInterface, Type tImplementation, Type tScope) /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IRegistrationBase Register(Type tInterface, Type tImplementation, Type tScope)
{ {
Register(_registrationFactory.Register(tInterface, tImplementation, tScope)); IRegistrationBase registration = _registrationFactory.Register(tInterface, tImplementation, tScope);
Register(registration);
return registration;
} }
/// <summary> /// <summary>
/// Register an Interface as an abstract typed factory/> /// Register an Interface as an abstract typed factory/>
/// </summary> /// </summary>
/// <typeparam name="TFactory">The abstract typed factory to register</typeparam> /// <typeparam name="TFactory">The abstract typed factory to register</typeparam>
public void RegisterFactory<TFactory>() /// <returns>The created <see cref="IRegistrationBase"/></returns>
public ITypedFactoryRegistration<TFactory> RegisterFactory<TFactory>()
{ {
Register(_registrationFactory.RegisterFactory<TFactory>()); ITypedFactoryRegistration<TFactory> registration = _registrationFactory.RegisterFactory<TFactory>();
Register(registration);
return registration;
} }
/// <summary> /// <summary>
/// Register an Interface as an abstract typed factory/> /// Register an Interface as an abstract typed factory/>
/// </summary> /// </summary>
/// <param name="tFactory">The abstract typed factory to register</param> /// <param name="tFactory">The abstract typed factory to register</param>
public void RegisterFactory(Type tFactory) /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IRegistrationBase RegisterFactory(Type tFactory)
{ {
Register(_registrationFactory.RegisterFactory(tFactory)); IRegistrationBase registration = _registrationFactory.RegisterFactory(tFactory);
Register(registration);
return registration;
} }
/// <summary> /// <summary>
@ -139,9 +171,13 @@ namespace LightweightIocContainer
/// </summary> /// </summary>
/// <typeparam name="TInterface">The Interface to register</typeparam> /// <typeparam name="TInterface">The Interface to register</typeparam>
/// <param name="unitTestCallback">The <see cref="ResolveCallback{T}"/> for the callback</param> /// <param name="unitTestCallback">The <see cref="ResolveCallback{T}"/> for the callback</param>
public void RegisterUnitTestCallback<TInterface>(ResolveCallback<TInterface> unitTestCallback) /// <returns>The created <see cref="IRegistrationBase"/></returns>
public IUnitTestCallbackRegistration<TInterface> RegisterUnitTestCallback<TInterface>(ResolveCallback<TInterface> unitTestCallback)
{ {
Register(_registrationFactory.RegisterUnitTestCallback(unitTestCallback)); IUnitTestCallbackRegistration<TInterface> registration = _registrationFactory.RegisterUnitTestCallback(unitTestCallback);
Register(registration);
return registration;
} }
/// <summary> /// <summary>

@ -224,6 +224,7 @@
<typeparam name="TInterface">The Interface to register</typeparam> <typeparam name="TInterface">The Interface to register</typeparam>
<typeparam name="TImplementation">The Type that implements the interface</typeparam> <typeparam name="TImplementation">The Type that implements the interface</typeparam>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register``1(LightweightIocContainer.Lifestyle)"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register``1(LightweightIocContainer.Lifestyle)">
<summary> <summary>
@ -231,6 +232,7 @@
</summary> </summary>
<typeparam name="TImplementation">The <see cref="T:System.Type"/> to register</typeparam> <typeparam name="TImplementation">The <see cref="T:System.Type"/> to register</typeparam>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register``3"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register``3">
<summary> <summary>
@ -239,6 +241,7 @@
<typeparam name="TInterface">The Interface to register</typeparam> <typeparam name="TInterface">The Interface to register</typeparam>
<typeparam name="TImplementation">The Type that implements the interface</typeparam> <typeparam name="TImplementation">The Type that implements the interface</typeparam>
<typeparam name="TScope">The Type of the multiton scope</typeparam> <typeparam name="TScope">The Type of the multiton scope</typeparam>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register(System.Type,System.Type,LightweightIocContainer.Lifestyle)"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register(System.Type,System.Type,LightweightIocContainer.Lifestyle)">
<summary> <summary>
@ -247,6 +250,7 @@
<param name="tInterface">The Interface to register</param> <param name="tInterface">The Interface to register</param>
<param name="tImplementation">The Type that implements the interface</param> <param name="tImplementation">The Type that implements the interface</param>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register(System.Type,LightweightIocContainer.Lifestyle)"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register(System.Type,LightweightIocContainer.Lifestyle)">
<summary> <summary>
@ -254,6 +258,7 @@
</summary> </summary>
<param name="tImplementation">The <see cref="T:System.Type"/> to register</param> <param name="tImplementation">The <see cref="T:System.Type"/> to register</param>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register(System.Type,System.Type,System.Type)"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register(System.Type,System.Type,System.Type)">
<summary> <summary>
@ -262,18 +267,21 @@
<param name="tInterface">The Interface to register</param> <param name="tInterface">The Interface to register</param>
<param name="tImplementation">The Type that implements the interface</param> <param name="tImplementation">The Type that implements the interface</param>
<param name="tScope">The Type of the multiton scope</param> <param name="tScope">The Type of the multiton scope</param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.RegisterFactory``1"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.RegisterFactory``1">
<summary> <summary>
Register an Interface as an abstract typed factory/> Register an Interface as an abstract typed factory/>
</summary> </summary>
<typeparam name="TFactory">The abstract typed factory to register</typeparam> <typeparam name="TFactory">The abstract typed factory to register</typeparam>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.RegisterFactory(System.Type)"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.RegisterFactory(System.Type)">
<summary> <summary>
Register an Interface as an abstract typed factory/> Register an Interface as an abstract typed factory/>
</summary> </summary>
<param name="tFactory">The abstract typed factory to register</param> <param name="tFactory">The abstract typed factory to register</param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.RegisterUnitTestCallback``1(LightweightIocContainer.ResolveCallback{``0})"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.RegisterUnitTestCallback``1(LightweightIocContainer.ResolveCallback{``0})">
<summary> <summary>
@ -281,6 +289,7 @@
</summary> </summary>
<typeparam name="TInterface">The Interface to register</typeparam> <typeparam name="TInterface">The Interface to register</typeparam>
<param name="unitTestCallback">The <see cref="T:LightweightIocContainer.ResolveCallback`1"/> for the callback</param> <param name="unitTestCallback">The <see cref="T:LightweightIocContainer.ResolveCallback`1"/> for the callback</param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.Resolve``1"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.Resolve``1">
<summary> <summary>
@ -441,6 +450,7 @@
<typeparam name="TInterface">The Interface to register</typeparam> <typeparam name="TInterface">The Interface to register</typeparam>
<typeparam name="TImplementation">The Type that implements the interface</typeparam> <typeparam name="TImplementation">The Type that implements the interface</typeparam>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.Register``1(LightweightIocContainer.Lifestyle)"> <member name="M:LightweightIocContainer.IocContainer.Register``1(LightweightIocContainer.Lifestyle)">
<summary> <summary>
@ -448,6 +458,7 @@
</summary> </summary>
<typeparam name="TImplementation">The <see cref="T:System.Type"/> to register</typeparam> <typeparam name="TImplementation">The <see cref="T:System.Type"/> to register</typeparam>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.Register``3"> <member name="M:LightweightIocContainer.IocContainer.Register``3">
<summary> <summary>
@ -456,6 +467,7 @@
<typeparam name="TInterface">The Interface to register</typeparam> <typeparam name="TInterface">The Interface to register</typeparam>
<typeparam name="TImplementation">The Type that implements the interface</typeparam> <typeparam name="TImplementation">The Type that implements the interface</typeparam>
<typeparam name="TScope">The Type of the multiton scope</typeparam> <typeparam name="TScope">The Type of the multiton scope</typeparam>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.Register(System.Type,System.Type,LightweightIocContainer.Lifestyle)"> <member name="M:LightweightIocContainer.IocContainer.Register(System.Type,System.Type,LightweightIocContainer.Lifestyle)">
<summary> <summary>
@ -464,6 +476,7 @@
<param name="tInterface">The Interface to register</param> <param name="tInterface">The Interface to register</param>
<param name="tImplementation">The Type that implements the interface</param> <param name="tImplementation">The Type that implements the interface</param>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.Register(System.Type,LightweightIocContainer.Lifestyle)"> <member name="M:LightweightIocContainer.IocContainer.Register(System.Type,LightweightIocContainer.Lifestyle)">
<summary> <summary>
@ -471,6 +484,7 @@
</summary> </summary>
<param name="tImplementation">The <see cref="T:System.Type"/> to register</param> <param name="tImplementation">The <see cref="T:System.Type"/> to register</param>
<param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param> <param name="lifestyle">The <see cref="T:LightweightIocContainer.Lifestyle"/> for this <see cref="T:LightweightIocContainer.Interfaces.Registrations.IDefaultRegistration`1"/></param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.Register(System.Type,System.Type,System.Type)"> <member name="M:LightweightIocContainer.IocContainer.Register(System.Type,System.Type,System.Type)">
<summary> <summary>
@ -479,18 +493,21 @@
<param name="tInterface">The Interface to register</param> <param name="tInterface">The Interface to register</param>
<param name="tImplementation">The Type that implements the interface</param> <param name="tImplementation">The Type that implements the interface</param>
<param name="tScope">The Type of the multiton scope</param> <param name="tScope">The Type of the multiton scope</param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.RegisterFactory``1"> <member name="M:LightweightIocContainer.IocContainer.RegisterFactory``1">
<summary> <summary>
Register an Interface as an abstract typed factory/> Register an Interface as an abstract typed factory/>
</summary> </summary>
<typeparam name="TFactory">The abstract typed factory to register</typeparam> <typeparam name="TFactory">The abstract typed factory to register</typeparam>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.RegisterFactory(System.Type)"> <member name="M:LightweightIocContainer.IocContainer.RegisterFactory(System.Type)">
<summary> <summary>
Register an Interface as an abstract typed factory/> Register an Interface as an abstract typed factory/>
</summary> </summary>
<param name="tFactory">The abstract typed factory to register</param> <param name="tFactory">The abstract typed factory to register</param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.RegisterUnitTestCallback``1(LightweightIocContainer.ResolveCallback{``0})"> <member name="M:LightweightIocContainer.IocContainer.RegisterUnitTestCallback``1(LightweightIocContainer.ResolveCallback{``0})">
<summary> <summary>
@ -498,6 +515,7 @@
</summary> </summary>
<typeparam name="TInterface">The Interface to register</typeparam> <typeparam name="TInterface">The Interface to register</typeparam>
<param name="unitTestCallback">The <see cref="T:LightweightIocContainer.ResolveCallback`1"/> for the callback</param> <param name="unitTestCallback">The <see cref="T:LightweightIocContainer.ResolveCallback`1"/> for the callback</param>
<returns>The created <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistrationBase"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.IocContainer.Register(LightweightIocContainer.Interfaces.Registrations.IRegistrationBase)"> <member name="M:LightweightIocContainer.IocContainer.Register(LightweightIocContainer.Interfaces.Registrations.IRegistrationBase)">
<summary> <summary>

Loading…
Cancel
Save