Update test to use UsePerRequestServices

This commit is contained in:
Hao Kung 2014-10-09 14:31:56 -07:00
parent 59ec9de771
commit 22152fda59
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ namespace MusicStore
//Note: ErrorPageOptions.ShowAll to be used only at development time. Not recommended for production.
app.UseErrorPage(ErrorPageOptions.ShowAll);
app.UseServices(services =>
app.UsePerRequestServices(services =>
{
//If this type is present - we're on mono
var runningOnMono = Type.GetType("Mono.Runtime") != null;