private void context_EndRequest(object sender, EventArgs e)
		{
			var builder = new HybridSessionBuilder();

			var session = builder.GetExistingWebSession();
			if (session != null)
			{
				Logger.Debug(this, "Disposing of ISession " + session.GetHashCode());
				session.Dispose();
			}
		}
Example #2
0
        private void context_EndRequest(object sender, EventArgs e)
        {
            var builder = new HybridSessionBuilder();

            var session = builder.GetExistingWebSession();

            if (session != null)
            {
                Logger.Debug(this, "Disposing of ISession " + session.GetHashCode());
                session.Dispose();
            }
        }