示例#1
0
        public static void AddProviderTypeManager(Func <Type, bool> condition, Action <Type> action, LoadedProviderTypeLoaders loadedProviderTypeLoadersSingleton, ILoggerFactory loggerFactory)
        {
            var manager = new ProviderTypeLoader(condition, action, loggerFactory);

            loadedProviderTypeLoadersSingleton.Managers.Add(manager);
            manager.ProcessLoadedAssemblies(loadedProviderTypeLoadersSingleton);
        }
示例#2
0
        public static void AddProviderTypeManager(Func<Type, bool> condition, Action<Type> action)
        {
            var manager = new ProviderTypeLoader(condition, action);

            lock (managers)
            {
                managers.Add(manager);
            }

            manager.ProcessLoadedAssemblies();
        }
示例#3
0
        public static void AddProviderTypeManager(Func <Type, bool> condition, Action <Type> action)
        {
            var manager = new ProviderTypeLoader(condition, action);

            lock (managers)
            {
                managers.Add(manager);
            }

            manager.ProcessLoadedAssemblies();
        }