예제 #1
0
        protected static void RegisterFacetFactories(IUnityContainer container)
        {
            var factoryTypes = FacetFactories.StandardFacetFactories();

            for (int i = 0; i < factoryTypes.Length; i++)
            {
                RegisterFacetFactory(factoryTypes[i], container, i);
            }
        }
        public static void RegisterStandardFacetFactories(IServiceCollection services)
        {
            var factoryTypes = FacetFactories.StandardFacetFactories();

            for (var i = 0; i < factoryTypes.Length; i++)
            {
                ConfigHelpers.RegisterFacetFactory(factoryTypes[i], services, i);
            }
        }
예제 #3
0
        public static void RegisterStandardFacetFactories(IUnityContainer container)
        {
            var factoryTypes = FacetFactories.StandardFacetFactories();

            for (int i = 0; i < factoryTypes.Count(); i++)
            {
                UnityConfigHelpers.RegisterFacetFactory(factoryTypes[i], container, i);
            }
        }