Example #1
0
        /// <summary>
        /// <see cref="IRegistration"/> for open generic types
        /// </summary>
        /// <param name="interfaceType">The <see cref="Type"/> of the interface</param>
        /// <param name="implementationType">The <see cref="Type"/> of the implementation type</param>
        /// <param name="lifestyle">The <see cref="Lifestyle"/> of this <see cref="IOpenGenericRegistration"/></param>
        public OpenGenericRegistration(Type interfaceType, Type implementationType, Lifestyle lifestyle)
        {
            InterfaceType      = interfaceType;
            ImplementationType = implementationType;
            Lifestyle          = lifestyle;

            Name = $"{InterfaceType.Name}, {ImplementationType.Name}, Lifestyle: {Lifestyle.ToString()}";
        }