Пример #1
0
        private DependencyBuilderInfo CreateBuilderInfo()
        {
            var info = new DependencyBuilderInfo();

            Definitions.Add(info);
            return(info);
        }
Пример #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));
        }
Пример #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));
        }