Skip to content

Commit

Permalink
removed comments from json, replaced it to program.
Browse files Browse the repository at this point in the history
  • Loading branch information
niraymak committed Jan 13, 2021
1 parent a9ebd77 commit d95beff
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public static int Main(string[] args)
/// <returns>The webhostbuilder instance.</returns>
public static IWebHostBuilder CreateHostBuilder(string[] args)
{
// Appsettings is renamed because of an issue where the project loaded another appsettings.json
return WebHost.CreateDefaultBuilder(args)
.UseContentRoot(Directory.GetCurrentDirectory())
.ConfigureAppConfiguration((hostingContext, config) =>
Expand Down
2 changes: 0 additions & 2 deletions API/appsettingsapi.Development.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Appsettings is renamed because of an issue where the project loaded another appsettings.json

{
"ConnectionStrings": {
"DefaultConnection": "Server=(LocalDb)\\MSSQLLocalDB;Database=Dex;Trusted_Connection=True;MultipleActiveResultSets=true"
Expand Down
2 changes: 0 additions & 2 deletions API/appsettingsapi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Appsettings is renamed because of an issue where the project loaded another appsettings.json

{
"UpdateInstitutionOnLogin": true,
"ConnectionStrings": {
Expand Down
1 change: 1 addition & 0 deletions NotificationSystem/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ internal class Program
private static void Main()
{
string environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
// Appsettings is renamed because of an issue where the project loaded another appsettings.json
IConfiguration configuration = new ConfigurationBuilder()
.AddJsonFile("appsettingsnotificationsystem.json", true, true)
.AddJsonFile($"appsettingsnotificationsystem.{environmentName}.json", true, true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Appsettings is renamed because of an issue where the project loaded another appsettings.json

{
"App": {
"RabbitMQ": {
Expand Down
2 changes: 0 additions & 2 deletions NotificationSystem/appsettingsnotificationsystem.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Appsettings is renamed because of an issue where the project loaded another appsettings.json

{
"App": {
"RabbitMQ": {
Expand Down

0 comments on commit d95beff

Please sign in to comment.