Skip to content

Commit

Permalink
updating appsettings build
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtallcampbell committed Aug 2, 2024
1 parent d85c09d commit dafda99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public static void Main(string[] args) {
// Load any local appsettings incase they're overriding the cluster values
builder.Configuration.AddJsonFile(Path.Combine(Directory.GetCurrentDirectory(), "appsettings.{env:DOTNET_ENVIRONMENT}.json"), optional: true, reloadOnChange: false);

// Build the configuration
build.Configuration.Build();

builder.WebHost.ConfigureKestrel(options => options.ListenAnyIP(50051, o => o.Protocols = HttpProtocols.Http2))
.ConfigureServices((services) => {
services.AddAzureOrbitalFramework();
Expand Down
3 changes: 3 additions & 0 deletions test/debugClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public static void Main(string[] args) {
// Load any local appsettings incase they're overriding the cluster values
builder.Configuration.AddJsonFile(Path.Combine(Directory.GetCurrentDirectory(), "appsettings.{env:DOTNET_ENVIRONMENT}.json"), optional: true, reloadOnChange: false);

// Build the configuration
build.Configuration.Build();

builder.WebHost.ConfigureKestrel(options => options.ListenAnyIP(50051, o => o.Protocols = HttpProtocols.Http2))
.ConfigureServices((services) => {
services.AddAzureOrbitalFramework();
Expand Down
3 changes: 3 additions & 0 deletions test/integrationTests/TestSharedContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public TestSharedContext() {
// Load any local appsettings incase they're overriding the cluster values
builder.Configuration.AddJsonFile(Path.Combine(Directory.GetCurrentDirectory(), "appsettings.{env:DOTNET_ENVIRONMENT}.json"), optional: true, reloadOnChange: false);

// Build the configuration
build.Configuration.Build();

builder.WebHost.ConfigureKestrel(options => options.ListenAnyIP(50051, o => o.Protocols = HttpProtocols.Http2))
.ConfigureServices((services) => {
services.AddAzureOrbitalFramework();
Expand Down

0 comments on commit dafda99

Please sign in to comment.