feat: 后台任务注入方法增加 AddFileStorage 方法

#Comment
后台任务序列化到物理文件方法
This commit is contained in:
Argo Zhang 2019-09-05 13:48:29 +08:00
parent 37121866e3
commit 4f8a2748dd
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.15-preview-1" />
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
<PackageReference Include="Longbow.Tasks" Version="1.10.0-preview-2" />
<PackageReference Include="Longbow.Tasks" Version="1.10.0-preview-3" />
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="3.1.6" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" PrivateAssets="All" />

View File

@ -18,7 +18,7 @@ namespace Microsoft.Extensions.DependencyInjection
/// <param name="services"></param>
public static IServiceCollection AddBootstrapAdminBackgroundTask(this IServiceCollection services)
{
services.AddTaskServices();
services.AddTaskServices(builder => builder.AddFileStorage());
services.AddHostedService<BootstrapAdminBackgroundServices>();
return services;
}