修改注册TimedTask的注册方法。发布新版本

This commit is contained in:
Falcon 2025-02-19 16:56:12 +08:00
parent 4c362574e6
commit e6101c0f6e
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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;