- add iRegistrationBase page and add links to it

master
Simon Gockner 6 years ago
parent daa23afb3d
commit e12de269a0
  1. 3
      Home.md
  2. 4
      IIocInstaller.md
  3. 0
      IRegistrationBase.md
  4. 2
      RegistrationFactory.md
  5. 2
      Simple-Usage-of-Lightweight-IOC-Container.md
  6. 3
      _Sidebar.md

@ -23,9 +23,10 @@ Welcome to the Lightweight IOC Container wiki!
- [`FromAssembly`](FromAssembly)
- [`This()`](FromAssembly#This)
- [`Instance()`](FromAssembly#Instance)
- [IIocInstaller](IIocInstaller)
- [`IIocInstaller`](IIocInstaller)
- [Base interface](IIocInstaller#base-interface)
- [`AssemblyInstaller`](IIocInstaller#assemblyInstaller)
- [`IRegistrationBase`](IRegistrationBase)
- [Lifestyles](Lifestyles)
- [`Lifestyle.Transient`](Lifestyles#lifestyletransient)
- [`Lifestyle.Singleton`](Lifestyles#lifestylesingleton)

@ -8,9 +8,9 @@ The base interface only consists of one method, the `Install()` method:
void Install(IIocContainer container);
```
The `Install()` method installs the given `IRegistrationBase`s in the given `IIocContainer`.
The `Install()` method installs the given [`IRegistrationBase`s](IRegistrationBase) in the given `IIocContainer`.
To create your own installer, you have to implement the `IIocInstaller` interface and the `Install()` method. Inside the `Install()` method you have to register the `IRegistrationBase`s with the given `IIocContainer`:
To create your own installer, you have to implement the `IIocInstaller` interface and the `Install()` method. Inside the `Install()` method you have to register the [`IRegistrationBase`s](IRegistrationBase) with the given `IIocContainer`:
```c#
container.Register(RegistrationFactory.Register<IFoo, Foo>());

@ -1,4 +1,4 @@
The `RegistrationFactory` is a helper class to register interfaces and factories in an [`IIocInstaller`](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](IRegistrationBase).
## Registering classes

@ -18,7 +18,7 @@ In this simple usage guide we will only take a look at the most straightforward
container.Register(new DefaultRegistration<IInterface>(typeof(IFoo), typeof(Foo), Lifestyle.Transient));
```
To make this even easier there is a [`RegistrationFactory`](RegistrationFactory) that helps you create the `IRegistrationBase` you need:
To make this even easier there is a [`RegistrationFactory`](RegistrationFactory) that helps you create the [`IRegistrationBase`](IRegistrationBase) you need:
```c#
container.Register(RegistrationFactory.Register<IFoo, Foo>());

@ -17,6 +17,7 @@
- Detailed documentation
- [Abstract factories](Abstract-factories)
- [`FromAssembly`](FromAssembly)
- [IIocInstaller](IIocInstaller)
- [`IIocInstaller`](IIocInstaller)
- [`IRegistrationBase`](IRegistrationBase)
- [Lifestyles](Lifestyles)
- [`RegistrationFactory`](RegistrationFactory)

Loading…
Cancel
Save