private void context_EndRequest(object sender, EventArgs e) { var builder = new HybridSessionBuilder(); var session = builder.GetExistingWebSession(); if (session != null) { //Log.Debug(this, "Disposing of ISession " + session.GetHashCode()); session.Dispose(); } }
public static void ResetSession() { var builder = new HybridSessionBuilder(); builder.GetSession().Dispose(); }