You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
590 B
C#

using DS.WMS.JobService;
using DS.Module.HangfireModule;
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddHostedService<Worker>();
//ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
builder.Configuration
// .SetBasePath(builder.Environment.ContentRootPath)
.AddJsonFile(path: "appsettings.json", optional: false, reloadOnChange: true)
// .AddJsonFile(path: $"appsettings.{environment}.json", optional: true, reloadOnChange: true)
.Build();
builder.Configuration.AddEnvironmentVariables();
//ע<><D7A2>hangfire
builder.Services.AddHangfireModuleInstall();
var host = builder.Build();
host.Run();