React to OnStarting rename
This commit is contained in:
parent
32ecf485b9
commit
086b53d21d
|
|
@ -92,16 +92,17 @@ namespace Microsoft.AspNet.Session
|
||||||
_context = context;
|
_context = context;
|
||||||
_sessionKey = sessionKey;
|
_sessionKey = sessionKey;
|
||||||
_options = options;
|
_options = options;
|
||||||
context.Response.OnResponseStarting(OnResponseStartingCallback, state: this);
|
context.Response.OnStarting(OnStartingCallback, state: this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void OnResponseStartingCallback(object state)
|
private static Task OnStartingCallback(object state)
|
||||||
{
|
{
|
||||||
var establisher = (SessionEstablisher)state;
|
var establisher = (SessionEstablisher)state;
|
||||||
if (establisher._shouldEstablishSession)
|
if (establisher._shouldEstablishSession)
|
||||||
{
|
{
|
||||||
establisher.SetCookie();
|
establisher.SetCookie();
|
||||||
}
|
}
|
||||||
|
return Task.FromResult(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetCookie()
|
private void SetCookie()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue