From cb03bae119932c0ebf159040c91915d08f32cff6 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Sat, 14 Dec 2019 21:16:16 +0100 Subject: [PATCH] #33: add IOnCreate for two interfaces --- .../Registrations/FluentProviders/IOnCreate.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/LightweightIocContainer/Interfaces/Registrations/FluentProviders/IOnCreate.cs b/LightweightIocContainer/Interfaces/Registrations/FluentProviders/IOnCreate.cs index c4556a4..5f1db43 100644 --- a/LightweightIocContainer/Interfaces/Registrations/FluentProviders/IOnCreate.cs +++ b/LightweightIocContainer/Interfaces/Registrations/FluentProviders/IOnCreate.cs @@ -26,4 +26,20 @@ namespace LightweightIocContainer.Interfaces.Registrations.FluentProviders /// The current instance of this IRegistrationBase OnCreate(Action action); } + + /// + /// Provides an method to an + /// + /// The first registered interface + /// The second registered interface + public interface IOnCreate + { + /// + /// Pass an for each interface that will be invoked when instances of the types are created + /// + /// The first + /// The second + /// The current instance of this + IMultipleRegistration OnCreate(Action action1, Action action2); + } } \ No newline at end of file