Have deleted unnecessary configurations
This commit is contained in:
@@ -8,14 +8,8 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
var services = builder.Services;
|
||||
var configuration = builder.Configuration;
|
||||
|
||||
services.AddLogging(
|
||||
loggingBuilder =>
|
||||
loggingBuilder.AddSerilog(
|
||||
new LoggerConfiguration().ReadFrom.Configuration(configuration).CreateLogger()));
|
||||
|
||||
|
||||
var connectionString = builder.Configuration.GetConnectionString("FrancescosRecipesWorldDbContextConnection")
|
||||
?? throw new InvalidOperationException("Connection string 'RecruitmentToolDbContextConnection' not found.");
|
||||
?? throw new InvalidOperationException("Connection string 'FrancescosRecipesWorldDbContextConnection' not found.");
|
||||
services.AddDbContext<FrancescosRecipesWorldDbContext>(options =>
|
||||
options.UseSqlServer(connectionString));
|
||||
|
||||
|
||||
@@ -9,15 +9,6 @@
|
||||
"ConnectionStrings": {
|
||||
"FrancescosRecipesWorldDbContextConnection": "Server=localhost\\SQLEXPRESS;Database=Francesco.Recipes.World; Trusted_Connection=True; MultipleActiveResultSets=true;TrustServerCertificate=True "
|
||||
},
|
||||
"EmailConfiguration": {
|
||||
"Server": "127.0.0.1",
|
||||
"SmtpPort": 1025,
|
||||
"User": "",
|
||||
"Password": "",
|
||||
"EnableSsl": false,
|
||||
"From": "mailhog@localhost.net",
|
||||
"WebUserInterface": "127.0.0.1:8025"
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Debug",
|
||||
@@ -26,16 +17,7 @@
|
||||
"Microsoft": "Information"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Sentry",
|
||||
"Args": {
|
||||
"Dsn": "https://84d32207fb244762a68b9d4a5de92495@sentry.intersim.ch/8",
|
||||
"MinimumBreadcrumbLevel": "Debug",
|
||||
"MinimumEventLevel": "Debug"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"Enrich": [
|
||||
"FromLogContext",
|
||||
"WithMachineName",
|
||||
|
||||
Reference in New Issue
Block a user