React to UsePerRequestServices
This commit is contained in:
parent
4853554147
commit
e9038b40f1
|
|
@ -9,7 +9,7 @@ namespace CookieSample
|
||||||
{
|
{
|
||||||
public void Configure(IApplicationBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
app.UseServices(services => { });
|
app.UsePerRequestServices(services => { });
|
||||||
app.UseCookieAuthentication(options =>
|
app.UseCookieAuthentication(options =>
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ namespace CookieSessionSample
|
||||||
{
|
{
|
||||||
public void Configure(IApplicationBuilder app)
|
public void Configure(IApplicationBuilder app)
|
||||||
{
|
{
|
||||||
app.UseServices(services => { });
|
app.UsePerRequestServices(services => { });
|
||||||
app.UseCookieAuthentication(options =>
|
app.UseCookieAuthentication(options =>
|
||||||
{
|
{
|
||||||
options.SessionStore = new MemoryCacheSessionStore();
|
options.SessionStore = new MemoryCacheSessionStore();
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace CookieSample
|
||||||
{
|
{
|
||||||
app.UseErrorPage();
|
app.UseErrorPage();
|
||||||
|
|
||||||
app.UseServices(services =>
|
app.UsePerRequestServices(services =>
|
||||||
{
|
{
|
||||||
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -369,7 +369,7 @@ namespace Microsoft.AspNet.Security.Cookies
|
||||||
{
|
{
|
||||||
return TestServer.Create(app =>
|
return TestServer.Create(app =>
|
||||||
{
|
{
|
||||||
app.UseServices(services => { });
|
app.UsePerRequestServices(services => { });
|
||||||
app.UseCookieAuthentication(configureOptions);
|
app.UseCookieAuthentication(configureOptions);
|
||||||
app.Use(async (context, next) =>
|
app.Use(async (context, next) =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Security.Facebook
|
||||||
var server = CreateServer(
|
var server = CreateServer(
|
||||||
app =>
|
app =>
|
||||||
{
|
{
|
||||||
app.UseServices(services =>
|
app.UsePerRequestServices(services =>
|
||||||
{
|
{
|
||||||
services.ConfigureFacebookAuthentication(options =>
|
services.ConfigureFacebookAuthentication(options =>
|
||||||
{
|
{
|
||||||
|
|
@ -70,7 +70,7 @@ namespace Microsoft.AspNet.Security.Facebook
|
||||||
var server = CreateServer(
|
var server = CreateServer(
|
||||||
app =>
|
app =>
|
||||||
{
|
{
|
||||||
app.UseServices(services =>
|
app.UsePerRequestServices(services =>
|
||||||
{
|
{
|
||||||
services.ConfigureFacebookAuthentication(options =>
|
services.ConfigureFacebookAuthentication(options =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -465,7 +465,7 @@ namespace Microsoft.AspNet.Security.Google
|
||||||
{
|
{
|
||||||
return TestServer.Create(app =>
|
return TestServer.Create(app =>
|
||||||
{
|
{
|
||||||
app.UseServices(services =>
|
app.UsePerRequestServices(services =>
|
||||||
{
|
{
|
||||||
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ namespace Microsoft.AspNet.Security.Tests.MicrosoftAccount
|
||||||
{
|
{
|
||||||
return TestServer.Create(app =>
|
return TestServer.Create(app =>
|
||||||
{
|
{
|
||||||
app.UseServices(services =>
|
app.UsePerRequestServices(services =>
|
||||||
{
|
{
|
||||||
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ namespace Microsoft.AspNet.Security.Twitter
|
||||||
{
|
{
|
||||||
return TestServer.Create(app =>
|
return TestServer.Create(app =>
|
||||||
{
|
{
|
||||||
app.UseServices(services =>
|
app.UsePerRequestServices(services =>
|
||||||
{
|
{
|
||||||
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
services.ConfigureOptions<ExternalAuthenticationOptions>(options =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue