using Microsoft.Extensions.Hosting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace FlexJobApi.Core { public class XmlDocBuildHostedService : IHostedService { public async Task StartAsync(CancellationToken cancellationToken) { await XmlDocUtils.BuildXmlDocAsync(); } public Task StopAsync(CancellationToken cancellationToken) { return Task.CompletedTask; } } }