React to OnStarting rename

This commit is contained in:
Hao Kung 2015-06-25 17:05:57 -07:00
parent 32ecf485b9
commit 086b53d21d
1 changed files with 3 additions and 2 deletions

View File

@ -92,16 +92,17 @@ namespace Microsoft.AspNet.Session
_context = context;
_sessionKey = sessionKey;
_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;
if (establisher._shouldEstablishSession)
{
establisher.SetCookie();
}
return Task.FromResult(0);
}
private void SetCookie()