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.ConfigurationModel;
using Microsoft.Framework.DependencyInjection; using Microsoft.Framework.DependencyInjection;
using MusicStore.Models; 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; using Microsoft.Framework.Cache.Memory;
namespace MusicStore namespace MusicStore
@ -108,7 +104,7 @@ namespace MusicStore
app.UseErrorPage(ErrorPageOptions.ShowAll); app.UseErrorPage(ErrorPageOptions.ShowAll);
// Add services from ConfigureServices // Add services from ConfigureServices
app.UseServices(); app.UsePerRequestServices();
//Configure SignalR //Configure SignalR
app.UseSignalR(); app.UseSignalR();

View File

@ -66,7 +66,7 @@ namespace MusicStore
//Note: ErrorPageOptions.ShowAll to be used only at development time. Not recommended for production. //Note: ErrorPageOptions.ShowAll to be used only at development time. Not recommended for production.
app.UseErrorPage(ErrorPageOptions.ShowAll); app.UseErrorPage(ErrorPageOptions.ShowAll);
app.UseServices(services => app.UsePerRequestServices(services =>
{ {
// Add EF services to the services container // Add EF services to the services container
services.AddEntityFramework() services.AddEntityFramework()