internal LoaderFactory(RuntimeAssemblyResolver asmResolver, IExtensionPointFactory extensionPointFactory, IExtensionBuilderFactory extensionBuilderFactory) { _asmResolver = asmResolver; _extensionPointFactory = extensionPointFactory; _extensionBuilderFactory = extensionBuilderFactory; _uid2ExLoaderFactories = new Dictionary <int, ExtensionLoaderFactory>(); _uid2EpLoaderFactories = new Dictionary <int, ExtensionPointLoaderFactory>(); }
public AddinConfiguration(IMessageDialog dialog, FileConfiguration fileConfig, INameConvention nameConvention, IExtensionBuilderFactory extensionBuilderFactory, IExtensionPointFactory extensionPointFactory) { _messageDialog = dialog; _fileConfig = fileConfig; _nameConvention = nameConvention; _ebFactory = extensionBuilderFactory; _epFactory = extensionPointFactory; }
internal AddinFramework(AddinOptions options) { _repository = new AddinRepository(); _messageDialog = options.MessageDialog ?? new DefaultMessageDialog(); _nameConvention = options.NameConvention ?? new DefaultNameConvention(); _fileSettings = options.FileSettings ?? new AddinFileSettings(); _assemblyLoadPolicy = options.AssemblyLoadPolicy ?? new DefaultAssemblyLoadPolicy(); _ebFactory = options.ExtensionBuilderFactory ?? new ReflectionExtensionBuilderFactory(); _epFactory = options.ExtensionPointFactory ?? new ReflectionExtensionPointFactory(); _eventBroker = options.EventBroker ?? new EventBroker(new EventBrokerOption()); _serviceProvider = options.ServiceProvider ?? new DefaultServiceProvider(); _stringLocalizer = options.StringLocalizer ?? new DefaultStringLocalizer(); LogManager.Initialize(new FileLogSetting(_fileSettings.DataDirectory, AddinFileSettings.LogFileName)); _logger = LogManager.GetDefaultLogger(); _properties = new Dictionary <HashKey, object>(); }
internal RuntimeExtensionLoader(RuntimeAssemblyResolver asmResolver, IExtensionPointFactory extensionPointFactory, IExtensionBuilderFactory extensionBuilderFactory) { _path2Loaders = new Dictionary <string, Loader>(); _loadedExtensionPointRecords = new List <ExtensionPointRecord>(); _loaderFactory = new LoaderFactory(asmResolver, extensionPointFactory, extensionBuilderFactory); }
protected ExtensionLoaderFactory(IExtensionBuilderFactory ebFactory, Type extensionBuilderType) { _ebFactory = ebFactory; _extensionBuilderType = extensionBuilderType; }
public AddinOptions WithExtensionBuilderFactory(IExtensionBuilderFactory extensionBuilderFactory) { _ebFactory = extensionBuilderFactory; return(this); }