コード例 #1
0
        /// <summary>
        /// Automatically maps and registers interfaces and concrete types into the Unity container.
        /// </summary>
        /// <param name="container">The container to be configured.</param>
        /// <param name="types">The array of interfaces and concretes to map up and register.</param>
        public static void AutomapTypes(this IUnityContainer container, params Type[] types)
        {
            Contract.Requires(container != null, "container");
            Contract.Requires(types != null, "types");

            container.AutomapTypes(NULL_MAPPING_OPTIONS, types);
        }