🎉 Initial commit of the Wallet

This commit is contained in:
2026-02-03 00:36:53 +08:00
parent cf1cecf753
commit bb9105c78c
9 changed files with 396 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using Quartz;
namespace DysonNetwork.Wallet.Startup;
public static class ScheduledJobsConfiguration
{
public static IServiceCollection AddAppScheduledJobs(this IServiceCollection services)
{
services.AddQuartz(q =>
{
q.AddJob<AppDatabaseRecyclingJob>(opts => opts.WithIdentity("AppDatabaseRecycling"));
q.AddTrigger(opts => opts
.ForJob("AppDatabaseRecycling")
.WithIdentity("AppDatabaseRecyclingTrigger")
.WithCronSchedule("0 0 0 * * ?"));
});
services.AddQuartzHostedService(q => q.WaitForJobsToComplete = true);
return services;
}
}