schangxiang@126.com
2025-05-16 252edd99e9094bc8cd1c08be71e6f93e49dfce94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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();
        }
    }
}