From 1d4834a8af4c0a4d010e965e2c235e3e51df362c Mon Sep 17 00:00:00 2001 From: hadashi Date: Wed, 3 Feb 2021 12:16:41 +0900 Subject: [PATCH] Expose RegistrationBuilder constructor and allow inheritance --- VContainer/Assets/VContainer/Runtime/RegistrationBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VContainer/Assets/VContainer/Runtime/RegistrationBuilder.cs b/VContainer/Assets/VContainer/Runtime/RegistrationBuilder.cs index 44fd9ad2..46409622 100644 --- a/VContainer/Assets/VContainer/Runtime/RegistrationBuilder.cs +++ b/VContainer/Assets/VContainer/Runtime/RegistrationBuilder.cs @@ -13,14 +13,14 @@ public class RegistrationBuilder protected List InterfaceTypes; protected List Parameters; - internal RegistrationBuilder(Type implementationType, Lifetime lifetime, List interfaceTypes = null) + public RegistrationBuilder(Type implementationType, Lifetime lifetime, List interfaceTypes = null) { ImplementationType = implementationType; InterfaceTypes = interfaceTypes; Lifetime = lifetime; } - internal RegistrationBuilder(object instance) + public RegistrationBuilder(object instance) { ImplementationType = instance.GetType(); Lifetime = Lifetime.Scoped;