diff --git a/ECMJobRunner.WebCron/Program.cs b/ECMJobRunner.WebCron/Program.cs index 3fc037d..26ae8c0 100644 --- a/ECMJobRunner.WebCron/Program.cs +++ b/ECMJobRunner.WebCron/Program.cs @@ -1,6 +1,7 @@ using ECMJobRunner.Application; using ECMJobRunner.Infrastructure; using ECMJobRunner.WebCron; +using ECMJobRunner.WebCron.ProfileWorker; using Hangfire; using Hangfire.SqlServer; using Microsoft.Data.SqlClient; @@ -53,7 +54,7 @@ try // Add services to the container. builder.Services.AddControllers(); -builder.Services.AddHostedService(); +builder.Services.AddProfileWorker(builder.Configuration); // Register services var cnnStr = builder.Configuration.GetConnectionString("SDD-VMP04-SQL17")