feat: 后台任务注入方法增加 AddFileStorage 方法
#Comment 后台任务序列化到物理文件方法
This commit is contained in:
parent
37121866e3
commit
4f8a2748dd
|
@ -12,7 +12,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.15-preview-1" />
|
<PackageReference Include="Bootstrap.Security.Mvc" Version="2.2.15-preview-1" />
|
||||||
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
|
<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.App" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="3.1.6" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="3.1.6" />
|
||||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" PrivateAssets="All" />
|
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" PrivateAssets="All" />
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace Microsoft.Extensions.DependencyInjection
|
||||||
/// <param name="services"></param>
|
/// <param name="services"></param>
|
||||||
public static IServiceCollection AddBootstrapAdminBackgroundTask(this IServiceCollection services)
|
public static IServiceCollection AddBootstrapAdminBackgroundTask(this IServiceCollection services)
|
||||||
{
|
{
|
||||||
services.AddTaskServices();
|
services.AddTaskServices(builder => builder.AddFileStorage());
|
||||||
services.AddHostedService<BootstrapAdminBackgroundServices>();
|
services.AddHostedService<BootstrapAdminBackgroundServices>();
|
||||||
return services;
|
return services;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue