- add register to interface

pull/57/head
Simon G 4 years ago
parent 3bea00c409
commit 6b6a549304
  1. 6
      LightweightIocContainer/Interfaces/IIocContainer.cs
  2. 6
      LightweightIocContainer/LightweightIocContainer.xml

@ -20,6 +20,12 @@ namespace LightweightIocContainer.Interfaces
/// <returns>An instance of the current <see cref="IIocContainer"/></returns> /// <returns>An instance of the current <see cref="IIocContainer"/></returns>
IIocContainer Install(params IIocInstaller[] installers); IIocContainer Install(params IIocInstaller[] installers);
/// <summary>
/// Register an <see cref="IRegistration"/> at this <see cref="IocContainer"/>
/// </summary>
/// <param name="addRegistration">The <see cref="Func{T, TResult}"/> that creates an <see cref="IRegistration"/></param>
public void Register(Func<IRegistrationCollector, IRegistration> addRegistration);
/// <summary> /// <summary>
/// Clear the multiton instances of the given <see cref="Type"/> from the registered multitons list /// Clear the multiton instances of the given <see cref="Type"/> from the registered multitons list
/// </summary> /// </summary>

@ -472,6 +472,12 @@
<param name="installers">The given <see cref="T:LightweightIocContainer.Interfaces.Installers.IIocInstaller"/>s</param> <param name="installers">The given <see cref="T:LightweightIocContainer.Interfaces.Installers.IIocInstaller"/>s</param>
<returns>An instance of the current <see cref="T:LightweightIocContainer.Interfaces.IIocContainer"/></returns> <returns>An instance of the current <see cref="T:LightweightIocContainer.Interfaces.IIocContainer"/></returns>
</member> </member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.Register(System.Func{LightweightIocContainer.Interfaces.Registrations.IRegistrationCollector,LightweightIocContainer.Interfaces.Registrations.IRegistration})">
<summary>
Register an <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistration"/> at this <see cref="T:LightweightIocContainer.IocContainer"/>
</summary>
<param name="addRegistration">The <see cref="T:System.Func`2"/> that creates an <see cref="T:LightweightIocContainer.Interfaces.Registrations.IRegistration"/></param>
</member>
<member name="M:LightweightIocContainer.Interfaces.IIocContainer.ClearMultitonInstances``1"> <member name="M:LightweightIocContainer.Interfaces.IIocContainer.ClearMultitonInstances``1">
<summary> <summary>
Clear the multiton instances of the given <see cref="T:System.Type"/> from the registered multitons list Clear the multiton instances of the given <see cref="T:System.Type"/> from the registered multitons list

Loading…
Cancel
Save