更改abp.vnext

This commit is contained in:
陈淳
2023-01-13 18:03:08 +08:00
parent 65377d9236
commit c905489ea5
22 changed files with 168 additions and 196 deletions

View File

@@ -1,26 +1,32 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using StartupModules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Modularity;
using Yi.Framework.Application.Contracts;
using Yi.Framework.Application.Contracts.Student;
using Yi.Framework.Application.Student;
using Yi.Framework.Domain.Shared;
namespace Yi.Framework.Application
{
public class YiFrameworkApplicationModule : IStartupModule
[DependsOn(
typeof(YiFrameworkDomainSharedModule),
typeof(YiFrameworkApplicationContractsModule) )]
public class YiFrameworkApplicationModule : AbpModule
{
public void Configure(IApplicationBuilder app, ConfigureMiddlewareContext context)
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddTransient<IStudentService, StudentService>();
}
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
services.AddTransient<IStudentService, StudentService>();
}
}
}