예제 #1
0
        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));
        }
예제 #2
0
        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));
        }