// Author: Gockner, Simon // Created: 2019-11-22 // Copyright(c) 2019 SimonG. All Rights Reserved. using System; using LightweightIocContainer.Interfaces.Registrations; namespace LightweightIocContainer.Registrations { /// /// The to register a for the Interface it implements /// /// The of the interface /// The of the implementation public class DefaultRegistration : TypedRegistrationBase, IDefaultRegistration where TImplementation : TInterface { /// /// The to register a for the Interface it implements /// /// The of the interface /// The of the implementation /// The of the public DefaultRegistration(Type interfaceType, Type implementationType, Lifestyle lifestyle) : base(interfaceType, implementationType, lifestyle) => Name = $"{InterfaceType.Name}, {ImplementationType.Name}, Lifestyle: {Lifestyle.ToString()}"; } }