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); }
public static void AddProviderTypeManager(Func<Type, bool> condition, Action<Type> action) { var manager = new ProviderTypeLoader(condition, action); lock (managers) { managers.Add(manager); } manager.ProcessLoadedAssemblies(); }
public static void AddProviderTypeManager(Func <Type, bool> condition, Action <Type> action) { var manager = new ProviderTypeLoader(condition, action); lock (managers) { managers.Add(manager); } manager.ProcessLoadedAssemblies(); }