From 503b58336884bcc8a01022221d9261d60529c5f6 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Fri, 22 Nov 2019 11:15:00 +0100 Subject: [PATCH] #29: fix comments for new IDefaultRegistration --- LightweightIocContainer/Interfaces/IIocContainer.cs | 2 +- LightweightIocContainer/IocContainer.cs | 4 ++-- LightweightIocContainer/LightweightIocContainer.xml | 4 ++-- LightweightIocContainer/Registrations/RegistrationFactory.cs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LightweightIocContainer/Interfaces/IIocContainer.cs b/LightweightIocContainer/Interfaces/IIocContainer.cs index a3162e3..f239ef1 100644 --- a/LightweightIocContainer/Interfaces/IIocContainer.cs +++ b/LightweightIocContainer/Interfaces/IIocContainer.cs @@ -28,7 +28,7 @@ namespace LightweightIocContainer.Interfaces /// The Type that implements the interface /// The for this /// The created - IRegistrationBase Register(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface; + IDefaultRegistration Register(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface; /// /// Register a without an interface diff --git a/LightweightIocContainer/IocContainer.cs b/LightweightIocContainer/IocContainer.cs index edd6d88..14f01af 100644 --- a/LightweightIocContainer/IocContainer.cs +++ b/LightweightIocContainer/IocContainer.cs @@ -59,9 +59,9 @@ namespace LightweightIocContainer /// The Type that implements the interface /// The for this /// The created - public IRegistrationBase Register(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface + public IDefaultRegistration Register(Lifestyle lifestyle = Lifestyle.Transient) where TImplementation : TInterface { - IRegistrationBase registration = _registrationFactory.Register(lifestyle); + IDefaultRegistration registration = _registrationFactory.Register(lifestyle); Register(registration); return registration; diff --git a/LightweightIocContainer/LightweightIocContainer.xml b/LightweightIocContainer/LightweightIocContainer.xml index 613bbb7..b82fb77 100644 --- a/LightweightIocContainer/LightweightIocContainer.xml +++ b/LightweightIocContainer/LightweightIocContainer.xml @@ -772,8 +772,8 @@ The Interface to register The Type that implements the interface - The for this - A new created with the given parameters + The for this + A new created with the given parameters diff --git a/LightweightIocContainer/Registrations/RegistrationFactory.cs b/LightweightIocContainer/Registrations/RegistrationFactory.cs index 8249da8..5292dcb 100644 --- a/LightweightIocContainer/Registrations/RegistrationFactory.cs +++ b/LightweightIocContainer/Registrations/RegistrationFactory.cs @@ -27,8 +27,8 @@ namespace LightweightIocContainer.Registrations /// /// The Interface to register /// The Type that implements the interface - /// The for this - /// A new created with the given parameters + /// The for this + /// A new created with the given parameters public IDefaultRegistration Register(Lifestyle lifestyle) where TImplementation : TInterface { return new DefaultRegistration(typeof(TInterface), typeof(TImplementation), lifestyle);