mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
838 B
23 lines
838 B
using Microsoft.AspNetCore.Mvc.ApplicationParts;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.PlugIn;
|
|
|
|
[DependsOn(typeof(AbpAspNetCoreMvcUiThemeSharedModule))]
|
|
public class MyPlungInModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
PreConfigure<IMvcBuilder>(mvcBuilder =>
|
|
{
|
|
//Add plugin assembly
|
|
mvcBuilder.PartManager.ApplicationParts.Add(new AssemblyPart(typeof(MyPlungInModule).Assembly));
|
|
|
|
//Add CompiledRazorAssemblyPart if the PlugIn module contains razor views.
|
|
mvcBuilder.PartManager.ApplicationParts.Add(new CompiledRazorAssemblyPart(typeof(MyPlungInModule).Assembly));
|
|
});
|
|
}
|
|
}
|