feat: 完成job模块优化

This commit is contained in:
橙子
2025-02-23 01:31:30 +08:00
parent f8a4c737ee
commit f6b19ec2a5
20 changed files with 40 additions and 66 deletions

View File

@@ -12,8 +12,10 @@
<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Include="appsettings.Development.json">
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
@@ -38,7 +40,9 @@
<ItemGroup>
<ProjectReference Include="..\..\src\Yi.Abp.Application\Yi.Abp.Application.csproj" />
<ProjectReference Include="..\..\src\Yi.Abp.SqlSugarCore\Yi.Abp.SqlSugarCore.csproj" />
<PackageReference Include="Hangfire.MemoryStorage" Version="1.8.1.1" />
<PackageReference Include="Hangfire.Redis.StackExchange" Version="1.9.4" />
<PackageReference Include="Hangfire.Core" Version="1.8.14" />
</ItemGroup>
</Project>

View File

@@ -1,5 +1,10 @@
using Volo.Abp.Auditing;
using Hangfire;
using Hangfire.MemoryStorage;
using StackExchange.Redis;
using Volo.Abp.Auditing;
using Volo.Abp.Autofac;
using Volo.Abp.BackgroundJobs.Hangfire;
using Volo.Abp.BackgroundWorkers;
using Yi.Abp.Application;
using Yi.Abp.SqlsugarCore;
@@ -8,14 +13,14 @@ namespace Yi.Abp.Test
[DependsOn(
typeof(YiAbpSqlSugarCoreModule),
typeof(YiAbpApplicationModule),
typeof(AbpAutofacModule),
typeof(AbpAuditingModule)
typeof(AbpAutofacModule)
)]
public class YiAbpTestModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpBackgroundWorkerOptions>(options=>options.IsEnabled=false);
}
}
}