修改注册TimedTask的注册方法。发布新版本
This commit is contained in:
parent
4c362574e6
commit
e6101c0f6e
|
@ -8,7 +8,7 @@
|
|||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Version>2.14.0</Version>
|
||||
<Version>2.14.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Falcon.SugarApi.TimedBackgroundTask
|
|||
/// <typeparam name="T">TimedBackgroundTask的具体类型</typeparam>
|
||||
/// <param name="services">服务集合</param>
|
||||
/// <returns>服务集合</returns>
|
||||
public static IServiceCollection AddTimedBackgroundTask<T>(this IServiceCollection services)
|
||||
public static IServiceCollection AddTimedTask<T>(this IServiceCollection services)
|
||||
where T : TimedTask {
|
||||
services.AddHostedService<T>();
|
||||
return services;
|
||||
|
|
Loading…
Reference in New Issue
Block a user