From e51298c5e08457aa2b6fe8a282f0c1920504bbac Mon Sep 17 00:00:00 2001 From: Simon G Date: Thu, 19 Nov 2020 12:01:39 +0100 Subject: [PATCH] #45: add method to create iMultipleMultitonRegistration --- LightweightIocContainer/Registrations/RegistrationFactory.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LightweightIocContainer/Registrations/RegistrationFactory.cs b/LightweightIocContainer/Registrations/RegistrationFactory.cs index 7ff2487..d17d1e4 100644 --- a/LightweightIocContainer/Registrations/RegistrationFactory.cs +++ b/LightweightIocContainer/Registrations/RegistrationFactory.cs @@ -119,6 +119,11 @@ namespace LightweightIocContainer.Registrations return new MultitonRegistration(typeof(TInterface), typeof(TImplementation), typeof(TScope)); } + public IMultipleMultitonRegistration RegisterMultiton() where TImplementation : TInterface1, TInterface2 + { + return new MultipleMultitonRegistration(typeof(TInterface1), typeof(TInterface2), typeof(TImplementation), typeof(TScope)); + } + /// /// Register an Interface as an abstract typed factory and create a ///