From fb5b7140ca79dee21954a3f9c67ecdcd04fc77a9 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Wed, 17 Jul 2019 17:04:05 +0200 Subject: [PATCH] - add itypedFactoryRegistration --- IRegistrationBase.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/IRegistrationBase.md b/IRegistrationBase.md index 7bbc055..e592ce9 100644 --- a/IRegistrationBase.md +++ b/IRegistrationBase.md @@ -18,6 +18,8 @@ and Type InterfaceType { get; } ``` +All of the following implementations of the `IRegistrationBase` can be easily created by the [`RegistrationFactory`](RegistrationFactory). + ## `IDefaultRegistration` This is the default registration that is used to register a `Type` for the interface it implements. `TInterface` is the `Type` of the interface. @@ -59,3 +61,11 @@ Type Scope { get; } ``` ## `ITypedFactoryRegistration` + +The `ITypedFactoryRegistration` is used to register an [abstract typed factory](abstract-factories) with the `IocContainer`. `TFactory` is the `Type` of the factory. + +It consists of the implemented properties from the [`IRegistrationBase`](IRegistrationBase) and adds one property of its own, the class that contains the implemented abstract factory of this `ITypedFactoryRegistration`: + +```c# +ITypedFactory Factory { get; } +```