💚 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()).
This commit is contained in:
parent
42a5a28210
commit
d27d18fe5a
|
|
@ -103,7 +103,7 @@ namespace MusicStore
|
||||||
// During development use the ErrorPage middleware to display error information in the browser
|
// During development use the ErrorPage middleware to display error information in the browser
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage();
|
||||||
|
|
||||||
// Add the runtime information page that can be used by developers
|
// Add the runtime information page that can be used by developers
|
||||||
// to see what packages are used by the application
|
// to see what packages are used by the application
|
||||||
|
|
@ -165,4 +165,4 @@ namespace MusicStore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace MusicStore
|
||||||
|
|
||||||
public StartupSocialTesting(IApplicationEnvironment appEnvironment, IRuntimeEnvironment runtimeEnvironment)
|
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.
|
//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()
|
var builder = new ConfigurationBuilder()
|
||||||
.SetBasePath(appEnvironment.ApplicationBasePath)
|
.SetBasePath(appEnvironment.ApplicationBasePath)
|
||||||
|
|
@ -114,7 +114,7 @@ namespace MusicStore
|
||||||
// Note: Not recommended for production.
|
// Note: Not recommended for production.
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage();
|
||||||
|
|
||||||
// Add the runtime information page that can be used by developers
|
// Add the runtime information page that can be used by developers
|
||||||
// to see what packages are used by the application
|
// to see what packages are used by the application
|
||||||
|
|
@ -216,4 +216,4 @@ namespace MusicStore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ namespace MusicStore
|
||||||
listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM;
|
listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM;
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage();
|
||||||
|
|
||||||
// Add the runtime information page that can be used by developers
|
// Add the runtime information page that can be used by developers
|
||||||
// to see what packages are used by the application
|
// to see what packages are used by the application
|
||||||
|
|
@ -159,4 +159,4 @@ namespace MusicStore
|
||||||
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices, false).Wait();
|
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices, false).Wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ namespace MusicStore
|
||||||
// During development use the ErrorPage middleware to display error information in the browser
|
// During development use the ErrorPage middleware to display error information in the browser
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage();
|
||||||
|
|
||||||
// Add the runtime information page that can be used by developers
|
// Add the runtime information page that can be used by developers
|
||||||
// to see what packages are used by the application
|
// to see what packages are used by the application
|
||||||
|
|
@ -162,4 +162,4 @@ namespace MusicStore
|
||||||
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait();
|
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue