ApiSystem: fix autofac
This commit is contained in:
parent
a064da49f4
commit
85cec8fff2
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
@ -62,9 +63,7 @@ namespace ASC.ApiSystem
|
|||||||
})
|
})
|
||||||
.AddJsonFile("appsettings.json")
|
.AddJsonFile("appsettings.json")
|
||||||
.AddJsonFile($"appsettings.{hostingContext.HostingEnvironment.EnvironmentName}.json", true)
|
.AddJsonFile($"appsettings.{hostingContext.HostingEnvironment.EnvironmentName}.json", true)
|
||||||
.AddJsonFile($"appsettings.services.json", true)
|
|
||||||
.AddJsonFile("storage.json")
|
.AddJsonFile("storage.json")
|
||||||
.AddJsonFile("notify.json")
|
|
||||||
.AddJsonFile("kafka.json")
|
.AddJsonFile("kafka.json")
|
||||||
.AddJsonFile($"kafka.{hostingContext.HostingEnvironment.EnvironmentName}.json", true)
|
.AddJsonFile($"kafka.{hostingContext.HostingEnvironment.EnvironmentName}.json", true)
|
||||||
.AddEnvironmentVariables();
|
.AddEnvironmentVariables();
|
||||||
|
@ -78,7 +78,7 @@ namespace ASC.ApiSystem
|
|||||||
.AddSettingsController()
|
.AddSettingsController()
|
||||||
.AddTariffController();
|
.AddTariffController();
|
||||||
|
|
||||||
services.AddAutofac(Configuration, HostEnvironment.ContentRootPath);
|
services.AddAutofac(Configuration, HostEnvironment.ContentRootPath, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
|
@ -1,36 +1,3 @@
|
|||||||
{
|
{
|
||||||
"pathToConf": "..\\..\\..\\config"
|
"pathToConf": "..\\..\\..\\config"
|
||||||
|
|
||||||
//"auth": {
|
|
||||||
// "allowskip": "false",
|
|
||||||
// "allowskip-registerportal": "true"
|
|
||||||
//},
|
|
||||||
|
|
||||||
//"core": {
|
|
||||||
// "base-domain": "localhost",
|
|
||||||
// "machinekey": "1123askdasjklasbnd\"",
|
|
||||||
// "notify": {
|
|
||||||
// "postman": "log"
|
|
||||||
// },
|
|
||||||
// "payment-partners": "",
|
|
||||||
// "username": {
|
|
||||||
// "regex": "^[\\p{L}\\p{M}' \\-]+$"
|
|
||||||
// }
|
|
||||||
//},
|
|
||||||
|
|
||||||
//"recaptcha": {
|
|
||||||
// "private-key": "6Leg06YUAAAAAKcKAVL8u_ZU4xbXAjPiAflBaA-2",
|
|
||||||
// "required": "true"
|
|
||||||
//},
|
|
||||||
|
|
||||||
//"web": {
|
|
||||||
// "api-cache": "",
|
|
||||||
// "app": {
|
|
||||||
// "keys": "ios-1e88-4c51-925c-6e521f2b2b46,android-39ed-4f49-89a4-01fe9175dc91"
|
|
||||||
// },
|
|
||||||
// "autotest": {
|
|
||||||
// "secret-email": "^teamlab.ruby@gmail.com$|^teamlab.hourly.check@gmail.com$|^teamlab.daily.check@gmail.com$|^.+@qamail.teamlab.info"
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user