Files
tnb.server/WarehouseMgr/Tnb.WarehouseMgr/Extensions/BackgroundServiceExtensions.cs
alex 0ac46b6e65 1
2023-09-18 14:40:21 +08:00

20 lines
529 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Spire.Pdf.Widget;
namespace Tnb.WarehouseMgr
{
public static class BackgroundServiceExtensions
{
public static IServiceCollection AddTimedTaskService(this IServiceCollection services)
{
return services.AddSingleton<BackgroundService, TimedTaskBackgroundService>();
}
}
}