From 1052ca316cf0b86414ea96d7a439456d787e9166 Mon Sep 17 00:00:00 2001 From: cneuwirt Date: Sat, 1 Mar 2008 18:33:15 +0000 Subject: [PATCH] Removed untyped contructor from ComponentRegistration and add a protected setter. git-svn-id: https://svn.castleproject.org/svn/castle/trunk@4865 73e77b4c-caa6-f847-a29a-24ab75ae54b6 --- .../Castle.MicroKernel/Registration/ComponentRegistration.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/InversionOfControl/Castle.MicroKernel/Registration/ComponentRegistration.cs b/InversionOfControl/Castle.MicroKernel/Registration/ComponentRegistration.cs index df9fd31da..5977b9966 100644 --- a/InversionOfControl/Castle.MicroKernel/Registration/ComponentRegistration.cs +++ b/InversionOfControl/Castle.MicroKernel/Registration/ComponentRegistration.cs @@ -38,14 +38,9 @@ namespace Castle.MicroKernel.Registration /// Initializes a new instance of the class. /// public ComponentRegistration() - : this(typeof(S)) - { - } - - protected ComponentRegistration(Type serviceType) { overwrite = false; - this.serviceType = serviceType; + serviceType = typeof(S); descriptors = new List>(); } @@ -386,8 +381,8 @@ namespace Castle.MicroKernel.Registration } public ComponentRegistration(Type serviceType) - : base(serviceType) { + ServiceType = serviceType; } public ComponentRegistration For(Type serviceType) -- 2.11.4.GIT