public static void AutomapAssemblies(this IUnityContainer container, MappingOptions options, params String[] assemblyNames)
		{
			Contract.Requires<ArgumentNullException>(container != null, "container");
			Contract.Requires<ArgumentNullException>(options != null, "options");
			Contract.Requires<ArgumentNullException>(assemblyNames != null, "assemblyNames");

			var controller = CreateController(container);
			controller.RegisterAssemblies(options.Behaviors, assemblyNames);
		}
		public static void AutomapTypes(this IUnityContainer container, MappingOptions options, params Type[] types)
		{
			Contract.Requires<ArgumentNullException>(container != null, "container");
			Contract.Requires<ArgumentNullException>(options != null, "options");
			Contract.Requires<ArgumentNullException>(types != null, "types");

			var controller = CreateController(container);
			controller.RegisterTypes(options.Behaviors, types);
		}
Пример #3
0
        public static void AutomapAssemblies(this IUnityContainer container, MappingOptions options, params String[] assemblyNames)
        {
            Contract.Requires(container != null, "container");
            Contract.Requires(options != null, "options");
            Contract.Requires(assemblyNames != null, "assemblyNames");

            var controller = CreateController(container);

            controller.RegisterAssemblies(options.Behaviors, assemblyNames);
        }
Пример #4
0
        public static void AutomapTypes(this IUnityContainer container, MappingOptions options, params Type[] types)
        {
            Contract.Requires(container != null, "container");
            Contract.Requires(options != null, "options");
            Contract.Requires(types != null, "types");

            var controller = CreateController(container);

            controller.RegisterTypes(options.Behaviors, types);
        }