feat: 完成job模块优化
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user