public PluginLoader(IServiceProvider serviceProvider, IPluginLoaderOptions options) { if (options is null) { throw new ArgumentNullException(nameof(options)); } this.serviceProvider = serviceProvider ?? new ServiceCollection().BuildServiceProvider(); this.options = options; this.plugins = new Lazy <IEnumerable <IPlugin> >(InitializePlugins); }
public PluginLoader(IPluginLoaderOptions options) : this(null, options) { }