33 lines
804 B
C#
33 lines
804 B
C#
using Dlhis.Middle.BackgroundServices;
|
|
using Kurisu.AspNetCore;
|
|
using Kurisu.AspNetCore.Startup;
|
|
using Microsoft.IdentityModel.Logging;
|
|
|
|
namespace Dlhis.Middle;
|
|
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
KurisuHost.Run<Startup>(args);
|
|
}
|
|
}
|
|
|
|
public class Startup : DefaultStartup
|
|
{
|
|
public Startup(IConfiguration configuration) : base(configuration)
|
|
{
|
|
IdentityModelEventSource.ShowPII = true;
|
|
}
|
|
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
{
|
|
base.ConfigureServices(services);
|
|
|
|
services.AddHostedService<BalanceRecordUploadBackgroundService>();
|
|
services.AddHostedService<HealthCheckBackgroundService>();
|
|
|
|
services.AddRemoteCall(App.ActiveTypes);
|
|
services.AddMemoryCache();
|
|
}
|
|
} |