Beispiel #1
0
        private DependencyBuilderInfo CreateBuilderInfo()
        {
            var info = new DependencyBuilderInfo();

            Definitions.Add(info);
            return(info);
        }
Beispiel #2
0
        /// <summary>
        /// Create a new binding with the specified type.
        /// </summary>
        /// <param name="resolvedTypes">The a list of types to bind.</param>
        /// <returns></returns>
        public IDependencyBuilderBindingResolve Resolve(params Type[] resolvedTypes)
        {
            DependencyBuilderInfo info = CreateBuilderInfo();

            return(info.Resolve(resolvedTypes));
        }
Beispiel #3
0
        /// <summary>
        /// Create a new binding with the specified type.
        /// </summary>
        /// <param name="type">The specified type to bind.</param>
        /// <returns></returns>
        public IDependencyBuilderBindingResolve Resolve(Type type)
        {
            DependencyBuilderInfo info = CreateBuilderInfo();

            return(info.Resolve(type));
        }