From d27d18fe5abe7c69ef6344d9a2289d3ba0f6c675 Mon Sep 17 00:00:00 2001 From: Rowan Miller Date: Wed, 21 Oct 2015 10:22:43 -0700 Subject: [PATCH] :green_heart: Fix more calls to UseDatabaseErrorPage Some more calls that I missed in my previous commit. The overload being used in the templates has swapped to a builder pattern (see aspnet/Diagnostics#184). But rather than updating to the new signature, just swapping to the parameterless overload since it enables everything by default (same as UseDeveloperExceptionPage()). --- shared/Mocks/StartupOpenIdConnectTesting.cs | 4 ++-- shared/Mocks/StartupSocialTesting.cs | 6 +++--- src/MusicStore/StartupNtlmAuthentication.cs | 4 ++-- src/MusicStore/StartupOpenIdConnect.cs | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/shared/Mocks/StartupOpenIdConnectTesting.cs b/shared/Mocks/StartupOpenIdConnectTesting.cs index 49811c341e..eba46c7a89 100644 --- a/shared/Mocks/StartupOpenIdConnectTesting.cs +++ b/shared/Mocks/StartupOpenIdConnectTesting.cs @@ -103,7 +103,7 @@ namespace MusicStore // During development use the ErrorPage middleware to display error information in the browser app.UseDeveloperExceptionPage(); - app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); + app.UseDatabaseErrorPage(); // Add the runtime information page that can be used by developers // to see what packages are used by the application @@ -165,4 +165,4 @@ namespace MusicStore } } } -#endif \ No newline at end of file +#endif diff --git a/shared/Mocks/StartupSocialTesting.cs b/shared/Mocks/StartupSocialTesting.cs index daaed694a9..c89ca95ee7 100644 --- a/shared/Mocks/StartupSocialTesting.cs +++ b/shared/Mocks/StartupSocialTesting.cs @@ -29,7 +29,7 @@ namespace MusicStore public StartupSocialTesting(IApplicationEnvironment appEnvironment, IRuntimeEnvironment runtimeEnvironment) { - //Below code demonstrates usage of multiple configuration sources. For instance a setting say 'setting1' is found in both the registered sources, + //Below code demonstrates usage of multiple configuration sources. For instance a setting say 'setting1' is found in both the registered sources, //then the later source will win. By this way a Local config can be overridden by a different setting while deployed remotely. var builder = new ConfigurationBuilder() .SetBasePath(appEnvironment.ApplicationBasePath) @@ -114,7 +114,7 @@ namespace MusicStore // Note: Not recommended for production. app.UseDeveloperExceptionPage(); - app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); + app.UseDatabaseErrorPage(); // Add the runtime information page that can be used by developers // to see what packages are used by the application @@ -216,4 +216,4 @@ namespace MusicStore } } } -#endif \ No newline at end of file +#endif diff --git a/src/MusicStore/StartupNtlmAuthentication.cs b/src/MusicStore/StartupNtlmAuthentication.cs index 860afa3733..acd917a251 100644 --- a/src/MusicStore/StartupNtlmAuthentication.cs +++ b/src/MusicStore/StartupNtlmAuthentication.cs @@ -109,7 +109,7 @@ namespace MusicStore listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM; } - app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); + app.UseDatabaseErrorPage(); // Add the runtime information page that can be used by developers // to see what packages are used by the application @@ -159,4 +159,4 @@ namespace MusicStore SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices, false).Wait(); } } -} \ No newline at end of file +} diff --git a/src/MusicStore/StartupOpenIdConnect.cs b/src/MusicStore/StartupOpenIdConnect.cs index b51d146b37..5ab58cdd7e 100644 --- a/src/MusicStore/StartupOpenIdConnect.cs +++ b/src/MusicStore/StartupOpenIdConnect.cs @@ -117,7 +117,7 @@ namespace MusicStore // During development use the ErrorPage middleware to display error information in the browser app.UseDeveloperExceptionPage(); - app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); + app.UseDatabaseErrorPage(); // Add the runtime information page that can be used by developers // to see what packages are used by the application @@ -162,4 +162,4 @@ namespace MusicStore SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait(); } } -} \ No newline at end of file +}