.Net Core + Autofac
2021-06-28 12:06
标签:class png startup packages image sem interface change source Enviroment: .Net(5.0) Autofac(6.2.0) Autofac.Configuration(6.0.0) Autofac.Extensions.DependencyInjection(7.1.0) 1. first intall follow packages 2. use autofac in ‘Program.cs‘ file to replace original IOC of .net core 3. add ConfigureContainer methord in startup, 4. add autofac.json file 5. register configuration module in startup 6. test successful .Net Core + Autofac 标签:class png startup packages image sem interface change source 原文地址:https://www.cnblogs.com/kevin-xk/p/14930144.html{
"defaultAssembly": "AutofacService",
"components": [
{
"type": "AutofacService.RemoteLogger, AutofacService",
"services": [
{
"type": "AutofacIService.ISimpleLogger,AutofacIService"
}
],
"injectProperties": true
}
]
}
public void ConfigureContainer(ContainerBuilder builder)
{
//builder.RegisterType
下一篇:css: 边宽弧度