using System.Reflection;
|
using CMS.Extensions.Abp;
|
using CMS.Extensions.Abp.AspNetCore;
|
using CMS.Plugin.PipeLineLems.Abstractions;
|
using CMS.Plugin.PipeLineLems.Application;
|
using CMS.Plugin.PipeLineLems.EntityFrameworkCore;
|
using CMS.Plugin.PipeLineLems.Jobs;
|
using Volo.Abp.BackgroundJobs;
|
using Volo.Abp.Modularity;
|
|
namespace CMS.Plugin.PipeLineLems
|
{
|
/// <summary>
|
/// CMS 插件依赖加载启动模块
|
/// </summary>
|
[DependsOn(
|
typeof(CMSPluginAbpModule),
|
typeof(CMSPluginAbpAspNetCoreModule),
|
typeof(CMSPluginApplicationModule),
|
typeof(CMSPluginEntityFrameworkCoreModule)
|
)]
|
public class CMSPluginModule : AbpStartupModule
|
{
|
/// <inheritdoc />
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
{
|
Configure<AbpBackgroundJobOptions>(options =>
|
{
|
options.AddJob<PipeLineLemsJob>();
|
});
|
}
|
|
/// <inheritdoc />
|
public override Assembly[]? GetSharedAssemblies()
|
{
|
return base.GetSharedAssemblies().Concat(new[]
|
{
|
typeof(CMSPluginPipeLineLemsAbstractionsModule).Assembly,
|
}).ToArray();
|
}
|
}
|
}
|