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