public static IMvcBuilder AddPlugin <TPlugin>(this IMvcBuilder builder, string assemblyFile, Action <TPlugin> configurator = null) where TPlugin : class { var plugin = PluginLoader.CreateFromAssemblyFile( assemblyFile, config => config.PreferSharedTypes = true); return(builder.AddPlugin(plugin, configurator)); }
public static IMvcBuilder AddPlugins <TPlugin>(this IMvcBuilder builder, Action <TPlugin> configurator = null) where TPlugin : class { var assemblyFile = @"C:\Aristocrat\Projects\Monaco.Tool\src\Monaco.Tool.Emdi\bin\Debug\netcoreapp3.1\Monaco.Tool.Emdi.dll"; // builder.AddPluginFromAssemblyFile(@"C:\Aristocrat\Projects\Monaco.Tool\src\Monaco.Tool.Emdi\bin\Debug\netcoreapp3.1\Monaco.Tool.Emdi.dll"); return(builder.AddPlugin(assemblyFile, configurator)); }