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 BuildDynamicControllersHostedService : IHostedService { public Task StartAsync(CancellationToken cancellationToken) { return ResourceUtils.BuildDynamicControllersAsync(); } public Task StopAsync(CancellationToken cancellationToken) { return Task.CompletedTask; } } }