- update wiki with links to other pages

master
Simon Gockner 7 years ago
parent bebeb8dffd
commit 9aa4d879ca
  1. 6
      Advanced-Usage-of-Lightweight-IOC-Container.md
  2. 1
      Home.md
  3. 1
      IIocInstaller.md
  4. 4
      RegistrationFactory.md
  5. 1
      _Sidebar.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.

@ -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)

@ -0,0 +1 @@
The `IIocInstaller` interface is the base class for all installers that are used by the `IocContainer`.

@ -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<TFactory>` has to be created. The preferred way to do so is to use the generic method `RegisterFactory<TFactory>()`:
To register [abstract factories](Abstract-factories), an `ITypedFactoryRegistration<TFactory>` has to be created. The preferred way to do so is to use the generic method `RegisterFactory<TFactory>()`:
```c#
RegistrationFactory.RegisterFactory<IFooFactory>(container);

@ -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)

Loading…
Cancel
Save