You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
687 B
C#

2 years ago
using System.Reflection;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using DS.Module.Core.Modules;
using Microsoft.AspNetCore.Builder;
namespace DS.Module.AutofacModule;
/// <summary>
/// Autofac模块
/// </summary>
public class AutofacInstall : DSAppModule
{
public override void ConfigureServices(ConfigureServicesContext context)
{
// WebApplicationBuilder builder = WebApplication.;
// //Autofac注入
// builder.Host
// .UseServiceProviderFactory(new AutofacServiceProviderFactory())
// .ConfigureContainer<ContainerBuilder>(builder => { builder.RegisterModule(new AutofacModuleRegister()); });
}
}