- add implementation of abstract factories

master
Simon Gockner 6 years ago
parent fb5b7140ca
commit cb6c95fbc5
  1. 11
      IRegistrationBase.md

@ -69,3 +69,14 @@ It consists of the implemented properties from the [`IRegistrationBase`](IRegist
```c#
ITypedFactory<TFactory> Factory { get; }
```
The `TypedFactoryRegistration<TFactory>` class implements the `ITypedFactoryRegistration<TFactory>` interface and also handles the implementation of the abstract factories. Therefore it supplies the `CreateFactory()` method:
```c#
private void CreateFactory(IIocContainer container)
{
}
```
This is done by writing the IL code for the `Create()` methods manually that call the `IocContainer.Resolve()` method, as well as the `ClearMultitonInstance` method that calls the `IocContainer.ClearMultitonInstances<>()` method.

Loading…
Cancel
Save