| 123456789101112131415161718192021222324252627282930 |
- using Business.Core.MongoDBHelper;
- using Business.EntityFrameworkCore.SqlRepositories;
- using Business.Quartz;
- using GZY.Quartz.MUI.Extensions;
- using Microsoft.AspNetCore.Builder;
- using Microsoft.AspNetCore.Hosting;
- using Microsoft.Extensions.DependencyInjection;
- using Microsoft.Extensions.Logging;
- namespace Business
- {
- public class Startup
- {
- public void ConfigureServices(IServiceCollection services)
- {
- services.AddApplication<BusinessHostModule>();
- //MongoDBHelperÒÀÀµ×¢Èë
- services.AddScoped(typeof(IMongoDB<>), typeof(MongoDBTools<>));
- services.AddScoped(typeof(ISqlRepository<>), typeof(SqlRepository<>));
- services.AddScoped<Config>();
- services.AddScoped<LogHostedService>();
- services.AddScoped<GZY.Quartz.MUI.Areas.MyFeature.Pages.MainModel>();
- }
- public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
- {
- app.InitializeApplication();
- }
- }
- }
|