React to UsePerRequestServices rename

This commit is contained in:
Hao Kung 2014-10-09 14:13:51 -07:00
parent ece6fc6c47
commit d06c973f57
2 changed files with 2 additions and 6 deletions

View File

@ -7,10 +7,6 @@ using Microsoft.Data.Entity;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using MusicStore.Models;
using Microsoft.AspNet.Security.Facebook;
using Microsoft.AspNet.Security.Google;
using Microsoft.AspNet.Security.Twitter;
using Microsoft.AspNet.Security.MicrosoftAccount;
using Microsoft.Framework.Cache.Memory;
namespace MusicStore
@ -108,7 +104,7 @@ namespace MusicStore
app.UseErrorPage(ErrorPageOptions.ShowAll);
// Add services from ConfigureServices
app.UseServices();
app.UsePerRequestServices();
//Configure SignalR
app.UseSignalR();

View File

@ -66,7 +66,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 =>
{
// Add EF services to the services container
services.AddEntityFramework()