| 1234567891011121314151617181920212223242526272829 |
- using Business.EntityFrameworkCore.SqlRepositories;
- using Business.SystemJob;
- using Business.SystemJobManagement;
- 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>();
- services.AddScoped(typeof(ISqlRepository<>), typeof(SqlRepository<>));
- services.AddScoped(typeof(IExtSqlRepository<>), typeof(ExtSqlRepository<>));
- services.AddScoped(typeof(IExtRASqlRepository<>), typeof(ExtRASqlRepository<>));
- services.AddScoped(typeof(ISqeRepository<>), typeof(SqeRepository<>));
- services.AddScoped(typeof(ISystemJobAppService), typeof(SystemJobAppService));
- services.AddScoped<GZY.Quartz.MUI.Areas.MyFeature.Pages.MainModel>();
- }
- public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
- {
- app.InitializeApplication();
- }
- }
- }
|