public HotPlug(string wpRootPath, IWpPluginLogger logger) { this.RootPath = wpRootPath; var compiler = new CompilerProvider(RootPath); _pluginsCompiler = new FolderCompiler(compiler, "wp-content/plugins", "wp-plugins", logger); _themesCompiler = new FolderCompiler(compiler, "wp-content/themes", "wp-themes", logger); }
public FolderCompiler(CompilerProvider compiler, string subPath, string outputAssemblyName, IWpPluginLogger logger) { this.Compiler = compiler ?? throw new ArgumentNullException(nameof(compiler)); this.SubPath = subPath ?? string.Empty; this.Logger = logger; _assemblyNamePrefix = outputAssemblyName ?? throw new ArgumentNullException(nameof(outputAssemblyName)); }