diff --git a/Advanced-Usage-of-Lightweight-IOC-Container.md b/Advanced-Usage-of-Lightweight-IOC-Container.md index b5b7db2..35022b8 100644 --- a/Advanced-Usage-of-Lightweight-IOC-Container.md +++ b/Advanced-Usage-of-Lightweight-IOC-Container.md @@ -18,9 +18,9 @@ public class Bootstrapper } ``` -## Register types with `IIocInstaller`s +## Register types with [`IIocInstaller`s](IIocInstaller) -The easiest way to register classes with the `IocContainer` is to use `IIocInstaller`s and install them in the `Bootstrapper`. +The easiest way to register classes with the `IocContainer` is to use [`IIocInstaller`s](IIocInstaller) and install them in the `Bootstrapper`. Example `IIocInstaller`: @@ -34,7 +34,7 @@ public class Installer : IIocInstaller } ``` -## Use factories to resolve instances +## Use [abstract factories](Abstract-factories) to resolve instances Instead of using the `Resolve<>()` method to resolve instances from the `IocContainer` and thus needing an `IocContainer`-object, it is recommended to use [abstract factories](Abstract-factories) to resolve instances. diff --git a/Home.md b/Home.md index 3cc7eb5..a4353f2 100644 --- a/Home.md +++ b/Home.md @@ -18,5 +18,6 @@ Welcome to the Lightweight IOC Container wiki! - [Use factories to resolve instances](Advanced-Usage-of-Lightweight-IOC-Container#Use-factories-to-resolve-instances) - Detailed documentation - [Abstract factories](Abstract-factories) + - [IIocInstaller](IIocInstaller) - [Lifestyles](Lifestyles) - [`RegistrationFactory`](RegistrationFactory) diff --git a/IIocInstaller.md b/IIocInstaller.md new file mode 100644 index 0000000..f8c5ae8 --- /dev/null +++ b/IIocInstaller.md @@ -0,0 +1 @@ +The `IIocInstaller` interface is the base class for all installers that are used by the `IocContainer`. diff --git a/RegistrationFactory.md b/RegistrationFactory.md index d7097c2..cd3e1f4 100644 --- a/RegistrationFactory.md +++ b/RegistrationFactory.md @@ -1,4 +1,4 @@ -The `RegistrationFactory` is a helper class to register interfaces and factories in an `IIocInstaller` and create the needed `IRegistrationBase`s. +The `RegistrationFactory` is a helper class to register interfaces and factories in an [`IIocInstaller`](IIocInstaller) and create the needed `IRegistrationBase`s. ## Registering classes @@ -48,7 +48,7 @@ RegistrationFactory.Register(typeof(IFoo), typeof(Foo), typeof(TScope)); ## Registering factories -To register abstract factories, an `ITypedFactoryRegistration` has to be created. The preferred way to do so is to use the generic method `RegisterFactory()`: +To register [abstract factories](Abstract-factories), an `ITypedFactoryRegistration` has to be created. The preferred way to do so is to use the generic method `RegisterFactory()`: ```c# RegistrationFactory.RegisterFactory(container); diff --git a/_Sidebar.md b/_Sidebar.md index d2692a5..6c086d5 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -16,5 +16,6 @@ - [Use factories to resolve instances](Advanced-Usage-of-Lightweight-IOC-Container#Use-factories-to-resolve-instances) - Detailed documentation - [Abstract factories](Abstract-factories) + - [IIocInstaller](IIocInstaller) - [Lifestyles](Lifestyles) - [`RegistrationFactory`](RegistrationFactory)