20 lines
529 B
C#
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>();
|
|
}
|
|
}
|
|
}
|