|
|
@@ -1,5 +1,6 @@
|
|
|
using Business.Core.MongoDBHelper;
|
|
|
using Business.EntityFrameworkCore.SqlRepositories;
|
|
|
+using Business.Quartz;
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
@@ -16,6 +17,7 @@ namespace Business
|
|
|
services.AddScoped(typeof(IMongoDB<>), typeof(MongoDBTools<>));
|
|
|
services.AddScoped(typeof(ISqlRepository<>), typeof(SqlRepository<>));
|
|
|
services.AddScoped<Config>();
|
|
|
+ services.AddScoped<LogHostedService>();
|
|
|
}
|
|
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
|