Startup.cs 905 B

1234567891011121314151617181920212223242526
  1. using Business.EntityFrameworkCore.SqlRepositories;
  2. using Business.SystemJob;
  3. using Business.SystemJobManagement;
  4. using Microsoft.AspNetCore.Builder;
  5. using Microsoft.AspNetCore.Hosting;
  6. using Microsoft.Extensions.DependencyInjection;
  7. using Microsoft.Extensions.Logging;
  8. namespace Business
  9. {
  10. public class Startup
  11. {
  12. public void ConfigureServices(IServiceCollection services)
  13. {
  14. services.AddApplication<BusinessHostModule>();
  15. services.AddScoped(typeof(ISqlRepository<>), typeof(SqlRepository<>));
  16. services.AddScoped(typeof(ISystemJobAppService), typeof(SystemJobAppService));
  17. services.AddScoped<GZY.Quartz.MUI.Areas.MyFeature.Pages.MainModel>();
  18. }
  19. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
  20. {
  21. app.InitializeApplication();
  22. }
  23. }
  24. }