private void RegisterEnsureStateStoreItemLocked() { // Item is locked yet here only if this is a new session if (!_rqSessionStateNotFound) { return; } _rqContext.Response.AddOnSendingHeaders( _ => TaskAsyncHelper.RunAsyncMethodSynchronously(EnsureStateStoreItemLockedAsync)); }
/// <inheritdoc /> public void ReleaseSessionState(HttpContext context) { // Release session state before executing child request TaskAsyncHelper.RunAsyncMethodSynchronously(() => ReleaseSessionStateAsync(context)); }