From cb6c95fbc577baec1f6a063ac4a21592de709887 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Thu, 18 Jul 2019 10:47:05 +0200 Subject: [PATCH] - add implementation of abstract factories --- IRegistrationBase.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/IRegistrationBase.md b/IRegistrationBase.md index e592ce9..e34c432 100644 --- a/IRegistrationBase.md +++ b/IRegistrationBase.md @@ -69,3 +69,14 @@ It consists of the implemented properties from the [`IRegistrationBase`](IRegist ```c# ITypedFactory Factory { get; } ``` + +The `TypedFactoryRegistration` class implements the `ITypedFactoryRegistration` 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.